throw $e;
} if (isset($container->privates
[$renamedId])) { throw new InvalidArgumentException(sprintf('The "%s" service is already initialized, you cannot replace it.',
$id));
} $container->privates
[$renamedId] =
$service;
} } public function has(string
$id): bool
{ return $this->
getPublicContainer()->
has($id) ||
$this->
getPrivateContainer()->
has($id);
} public function get(string
$id, int
$invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
): ?object
{ return $this->
getPrivateContainer()->
has($id) ?
$this->
getPrivateContainer()->
get($id) :
$this->
getPublicContainer()->
get($id,
$invalidBehavior);
} public function initialized(string
$id): bool
{ return $this->
getPublicContainer()->
initialized($id);
}