public function ContainerInterface::has in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerInterface.php \Symfony\Component\DependencyInjection\ContainerInterface::has()
Returns true if the given service is defined.
Parameters
string $id The service identifier:
Return value
bool true if the service is defined, false otherwise
3 methods override ContainerInterface::has()
- Container::has in vendor/
symfony/ dependency-injection/ Container.php - Returns true if the given service is defined.
- Container::has in core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php - Returns true if the given service is defined.
- ContainerBuilder::has in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Returns true if the given service is defined.
File
- vendor/
symfony/ dependency-injection/ ContainerInterface.php, line 63
Class
- ContainerInterface
- ContainerInterface is the interface implemented by service container classes.
Namespace
Symfony\Component\DependencyInjectionCode
public function has($id);