注册服务时module.config.php
喜欢
'service_manager' => [
'factories' => [
\Path\To\Your\Service\AService => \Path\To\Your\Service\Factory\AServiceFactory,
]
]
在 ZF2(工厂实现时MutableCreationOptionsInterface
)和 ZF3(通过$container->get(\Path\To\Your\Service\AService::class, $options)
.
谁能告诉我如何将创建选项传递给服务?