public function ContainerBuilder::hasDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::hasDefinition()
Returns true if a service definition exists under the given identifier.
Parameters
string $id The service identifier:
Return value
bool true if the service definition exists, false otherwise
File
- vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 777
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function hasDefinition($id) {
return array_key_exists(strtolower($id), $this->definitions);
}