public function ContainerBuilder::hasExtension in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php \Symfony\Component\DependencyInjection\ContainerBuilder::hasExtension()
Checks if we have an extension.
@api
Parameters
string $name The name of the extension:
Return value
bool If the extension exists
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerBuilder.php, line 187
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]);
}