Symfony\Component\DependencyInjection\ContainerBuilder::hasDefinition
Returns true if a service definition exists under the given identifier.
Signature
public function hasDefinition(string
$id )
Parameters
$id
— string- The service identifier
Returns
- Boolean
- true if the service definition exists, false otherwise