This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
Notice: Undefined variable: serviceLocator #148
Closed
Description
Hi,
The error is in Service/DiAbstractServiceFactoryFactory.php on line 32
I'm getting this error when I try create a service with a factory.
public function __invoke(ContainerInterface $container, $name, array $options = null)
{
$factory = new DiAbstractServiceFactory($container->get('Di'), DiAbstractServiceFactory::USE_SL_BEFORE_DI);
if ($serviceLocator instanceof ServiceManager) {
$serviceLocator->addAbstractFactory($factory, false);
}
return $factory;
}
The problem seems to be present since the release 2.7.0
Metadata
Metadata
Assignees
Labels
No labels