ILIAS
release_8 Revision v8.23
|
Public Member Functions | |
__construct (Container $dic, DependencyMap $dependencyMap) | |
Factory constructor. More... | |
createInstance (string $fullyQualifiedClassName, bool $requireFile=false, callable $with=null) | |
Protected Member Functions | |
createConstructorArguments (string $fullyQualifiedClassName, array $parameters, ?callable $with) | |
getDependency (string $fullyQualifiedClassName, ReflectionParameter $parameter, ?callable $with=null) | |
Protected Attributes | |
ILIAS DI Container | $dic |
ILIAS BackgroundTasks Dependencies DependencyMap DependencyMap | $dependencyMap |
Definition at line 32 of file Injector.php.
ILIAS\BackgroundTasks\Dependencies\Injector::__construct | ( | Container | $dic, |
DependencyMap | $dependencyMap | ||
) |
Factory constructor.
$dic | Container |
Definition at line 41 of file Injector.php.
References ILIAS\BackgroundTasks\Dependencies\Injector\$dependencyMap, and ILIAS\BackgroundTasks\Dependencies\Injector\$dic.
|
protected |
ReflectionParameter[] | $parameters |
Definition at line 76 of file Injector.php.
References ILIAS\BackgroundTasks\Dependencies\Injector\getDependency().
Referenced by ILIAS\BackgroundTasks\Dependencies\Injector\createInstance().
ILIAS\BackgroundTasks\Dependencies\Injector::createInstance | ( | string | $fullyQualifiedClassName, |
bool | $requireFile = false , |
||
callable | $with = null |
||
) |
string | $fullyQualifiedClassName | The given class must type hint all its constructor arguments. Furthermore the types must exist in the DI-Container. |
Definition at line 52 of file Injector.php.
References ILIAS\BackgroundTasks\Dependencies\Injector\createConstructorArguments().
|
protected |
InvalidClassException |
Definition at line 94 of file Injector.php.
References $type.
Referenced by ILIAS\BackgroundTasks\Dependencies\Injector\createConstructorArguments().
|
protected |
Definition at line 35 of file Injector.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\Injector\__construct().
Definition at line 34 of file Injector.php.
Referenced by ILIAS\BackgroundTasks\Dependencies\Injector\__construct().