38 $result = $map($DIC, $fullyQualifiedDomainName, $for);
42 return $this->
getDependency($DIC, $fullyQualifiedDomainName, $for);
52 $dependency_map =
new static();
53 $dependency_map->maps = array_merge([$map], $this->maps);
55 return $dependency_map;
63 foreach ($this->maps as $map) {
64 $result = $map($DIC, $fullyQualifiedDomainName, $for);
71 .
" could not be resolved.");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Customizing of pimple-DIC for ILIAS.
getDependencyWith(Container $DIC, string $fullyQualifiedDomainName, string $for, callable $map)
The DIC to take the dependencies from. What domain name is requested? (DIC $DIC, string $fullyQualifi...
with(callable $map)
Returns a new dependency map with the given mapping.
getDependency(Container $DIC, string $fullyQualifiedDomainName, string $for)
The DIC to take the dependencies from. What domain name is requested? What class is the dependency fo...