factory = $factory ? : new GenericAutowireFactory(); } /** * Check creatability of the requested name * * @param string $requestedName * @return bool */ public function canCreate(ContainerInterface $container, $requestedName) { return $this->factory->canCreate($container, $requestedName); } /** * Make invokable and implement the laminas-service factory pattern * * @param string $requestedName * @return bool */ public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) { return $this->factory->create($container, (string) $requestedName, $options); } }