public function ZfExtensionManagerSfContainer::setStandalone in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Component/Bridge/ZfExtensionManagerSfContainer.php \Drupal\Component\Bridge\ZfExtensionManagerSfContainer::setStandalone()
Parameters
$class:
File
- core/
lib/ Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php, line 128
Class
- ZfExtensionManagerSfContainer
- Defines a bridge between the Laminas service manager to Symfony container.
Namespace
Drupal\Component\BridgeCode
public function setStandalone($class) {
if (!is_subclass_of($class, ReaderManagerInterface::class) && !is_subclass_of($class, WriterManagerInterface::class)) {
throw new \RuntimeException("{$class} must implement Laminas\\Feed\\Reader\\ExtensionManagerInterface or Laminas\\Feed\\Writer\\ExtensionManagerInterface");
}
$this->standalone = new $class();
}