public function ZfExtensionManagerSfContainer::get in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php \Drupal\Component\Bridge\ZfExtensionManagerSfContainer::get()
File
- core/
lib/ Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php, line 71
Class
- ZfExtensionManagerSfContainer
- Defines a bridge between the Laminas service manager to Symfony container.
Namespace
Drupal\Component\BridgeCode
public function get($extension) {
try {
return $this->container
->get($this->prefix . $this
->canonicalizeName($extension));
} catch (ServiceNotFoundException $e) {
if ($this->standalone && $this->standalone
->has($extension)) {
return $this->standalone
->get($extension);
}
throw $e;
}
}