You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as the constructor of the proxy class will have no arguments.
a proxy constructor looks like:
## Start of Flow generated Proxy code#/** * A class of scope prototype with a value object as constructor argument * @codeCoverageIgnore */classPrototypeClassJextendsPrototypeClassJ_Originalimplements \Neos\Flow\ObjectManagement\Proxy\ProxyInterface {
/** * Autogenerated Proxy Method */publicfunction__construct()
{
$arguments = func_get_args();
if (!array_key_exists(0, $arguments)) $arguments[0] = \Neos\Flow\Core\Bootstrap::$staticObjectManager->get('Neos\Flow\Tests\Functional\ObjectManagement\Fixtures\ValueObjectClassA');
if (!array_key_exists(0, $arguments)) thrownew \Neos\Flow\ObjectManagement\Exception\UnresolvedDependenciesException('Missing required constructor argument $classA in class ' . __CLASS__ . '. Note that constructor injection is only support for objects of scope singleton (and this is not a singleton) – for other scopes you must pass each required argument to the constructor yourself.', 1296143788);
parent::__construct(...$arguments);
}
}
the proxy constructor should have all arguments, but nullable
mhsdesign
changed the title
BUG: named arguments with proxy constructor
BUG: named arguments with proxied constructor wont work (fx when passing objects as argument)
Jun 16, 2023
see 2f7003f
for a failing test to prove ;)
you cant currently instantiate this like
as the constructor of the proxy class will have no arguments.
a proxy constructor looks like:
the proxy constructor should have all arguments, but nullable
The text was updated successfully, but these errors were encountered: