return $locator;
} public function count(): int
{ return \
count($this->
getProvidedServices());
} private function createNotFoundException(string
$id): NotFoundExceptionInterface
{ if ($this->loading
) { $msg =
sprintf('The service "%s" has a dependency on a non-existent service "%s". This locator %s',
end($this->loading
),
$id,
$this->
formatAlternatives());
return new ServiceNotFoundException($id,
end($this->loading
) ?: null, null,
[],
$msg);
} $class =
debug_backtrace(\DEBUG_BACKTRACE_PROVIDE_OBJECT | \DEBUG_BACKTRACE_IGNORE_ARGS, 4
);
$class =
isset($class[3
]['object'
]) ?
$class[3
]['object'
]::
class D null;
$externalId =
$this->externalId ?:
$class;
$msg =
[];
$msg[] =
sprintf('Service "%s" not found:',
$id);