This repository was archived by the owner on Feb 6, 2020. It is now read-only.
This repository was archived by the owner on Feb 6, 2020. It is now read-only.
LazyServiceFactory class_exists feature #185
Open
Description
Hello, in the lazy_services configuration is a class_map array.
That array looks for most of my services like this:
[
Foo::class => Foo::class,
Bar::class => Bar::class,
]
For one Service i need a factories entry, a delegators entry and a class_map entry to the service_manager configuration.
Is it possible to add a class_exists option as "feature" to the LazyServiceFactory?
if (isset($this->servicesMap[$name])) {
return $this->proxyFactory->createProxy($this->servicesMap[$name], $initializer);
} elseif ($this->useClassExists && class_exists($name)) {
return $this->proxyFactory->createProxy($name, $initializer);
}
Metadata
Metadata
Assignees
Labels
No labels