Symfony\Component\DependencyInjection\Container::has
Returns true if the given service is defined.
Signature
public function has(string
$id )
Parameters
$id
— string- The service identifier
Returns
- Boolean
- true if the service is defined, false otherwise