Skip to content
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
@tommyseus

Description

@tommyseus

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions