29 $result = $map(
$DIC, $fullyQualifiedDomainName, $for);
33 return $this->
getDependency($DIC, $fullyQualifiedDomainName, $for);
46 public function with(callable $map)
48 $dependencyMap =
new static();
49 $dependencyMap->maps = array_merge([$map], $this->maps);
51 return $dependencyMap;
60 foreach ($this->maps as $map) {
61 $result = $map(
$DIC, $fullyQualifiedDomainName, $for);
68 .
" could not be resolved.");
An exception for terminatinating execution or to throw for unit testing.
getDependencyWith(Container $DIC, $fullyQualifiedDomainName, $for, callable $map)
mixed
with(callable $map)
Returns a new dependency map with the given mapping.
getDependency(Container $DIC, $fullyQualifiedDomainName, $for)
mixed
Customizing of pimple-DIC for ILIAS.