Method |
Description |
|
__construct ( string $class ) |
Contructs interface injector by specifying the target class name |
|
addMethodCall ( string $method, array $arguments = [] ) : InterfaceInjector |
Adds a method to call to be injected on any service implementing the interface. |
|
getClass ( ) : string |
Returns the interface name |
|
getMethodCalls ( ) : array |
Gets the methods to call after service initialization. |
|
hasMethodCall ( string $method ) : boolean |
Check if the current definition has a given method to call after service initialization. |
|
merge ( InterfaceInjector $injector ) |
Merges another InterfaceInjector |
|
processDefinition ( Definition $definition, $class = null ) : void |
Adds method calls if Definition is of required interface |
|
removeMethodCall ( string $method ) : Definition |
Removes a method to call after service initialization. |
|
supports ( string $object ) : boolean |
Inspects if current interface injector is to be used with a given class |
|