public function ContainerBuilder::hasExtension in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::hasExtension()
Checks if we have an extension.
Parameters
string $name The name of the extension:
Return value
bool If the extension exists
File
- vendor/
symfony/ dependency-injection/ ContainerBuilder.php, line 177
Class
- ContainerBuilder
- ContainerBuilder is a DI container that provides an API to easily describe services.
Namespace
Symfony\Component\DependencyInjectionCode
public function hasExtension($name) {
return isset($this->extensions[$name]) || isset($this->extensionsByNs[$name]);
}