ServerContainer

class OC\ServerContainer
Class ServerContainer
Source:lib/private/ServerContainer.php#42
Parent:OC\AppFramework\Utility\SimpleContainer

Properties

protected static property OC\ServerContainer::$appContainers
Source:lib/private/ServerContainer.php#44
Type:\OC\AppFramework\DependencyInjection\DIContainer[]
protected static property OC\ServerContainer::$hasNoAppContainer
Source:lib/private/ServerContainer.php#47
Type:string[]
protected static property OC\ServerContainer::$namespaces
Source:lib/private/ServerContainer.php#50
Type:string[]

Methods

public OC\ServerContainer::__construct()
ServerContainer constructor.
Source:lib/private/ServerContainer.php#55
public OC\ServerContainer::registerNamespace($appName, $appNamespace)
Source:

lib/private/ServerContainer.php#66

Parameters:
  • $appName (string)
  • $appNamespace (string)
public OC\ServerContainer::registerAppContainer($appName, $container)
Source:

lib/private/ServerContainer.php#76

Parameters:
public OC\ServerContainer::getRegisteredAppContainer($appName)
Source:

lib/private/ServerContainer.php#85

Parameters:
  • $appName (string)
Returns:

\OC\AppFramework\DependencyInjection\DIContainer

Throws:

\OCP\AppFramework\QueryException

protected OC\ServerContainer::getAppContainer($namespace, $sensitiveNamespace)
Source:

lib/private/ServerContainer.php#99

Parameters:
  • $namespace (string)
  • $sensitiveNamespace (string)
Returns:

\OC\AppFramework\DependencyInjection\DIContainer

Throws:

\OCP\AppFramework\QueryException

public OC\ServerContainer::has($id, $noRecursion=false)
Source:lib/private/ServerContainer.php#122
public OC\ServerContainer::query($name, $autoload=true)
Source:lib/private/ServerContainer.php#133
Deprecated:20.0.0 use \Psr\Container\ContainerInterface::get
public OC\ServerContainer::getAppContainerForService($id)
Source:

lib/private/ServerContainer.php#170

Parameters:
  • $id (string)
Returns:

\OC\AppFramework\DependencyInjection\DIContainer | null