ClosureLoader
class ClosureLoader extends Loader
ClosureLoader loads service definitions from a PHP closure.
The Closure has access to the container as its first argument.
Properties
protected | $resolver | from Loader |
Methods
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
load(mixed $resource, string|null $type = null)
Loads a resource.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
Details
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.