When registering a service in module.config.php
like
'service_manager' => [
'factories' => [
\Path\To\Your\Service\AService => \Path\To\Your\Service\Factory\AServiceFactory,
]
]
I can't pass in creation options when calling the service factory neither in ZF2 (when the factory implements MutableCreationOptionsInterface
) nor in ZF3 (via $container->get(\Path\To\Your\Service\AService::class, $options)
.
Could anyone tell me how to pass the creation options to the services?