Automatically configures classes and dependencies.
Sets up an automatic registration for classes when requested through
Pimple by looking up the class's constructor and arguments.
- author Zaahid Bateson
- Extends
Pimple\Container - Implements
ArrayAccess
Methods |
public autoRegister( $class) : ?string Returns a factory function for the passed class. The returned factory method looks up arguments and uses pimple to get an |
public extend( $id, $callable) Overridden to see if the class can be auto-registered first before
|
public offsetExists( $id) : bool Overridden to see if the class can be auto-registered and return true if |
public offsetGet( $id) Overridden to see if the class can be auto-registered and return an
|
Methods |
private getParameterClass(ReflectionParameter $param) : ?string Looks up the type of the passed ReflectionParameter and returns it as a Null is returned for built-in types. |