$container
$container :
Pimple PSR-11 service locator.
__construct(\Pimple\Container $container, array $ids)
| \Pimple\Container | $container | The Container instance used to locate services |
| array | $ids | Array of service ids that can be located. String keys can be used to define aliases |
has(string $id) : boolean
Returns true if the container can return an entry for the given identifier.
Returns false otherwise.
has($id) returning true does not mean that get($id) will not throw an exception.
It does however mean that get($id) will not throw a NotFoundExceptionInterface.
| string | $id | Identifier of the entry to look for. |