IServerContainer
extends
ContainerInterface, IContainer
in
This is a tagging interface for the server container
The interface currently extends IContainer, but this interface is deprecated as of Nextcloud 20, thus this interface won't extend it anymore once that was removed. So migrate to the ContainerInterface only.
Tags
Table of Contents
Methods
- getActivityManager() : IManager
- Returns the activity manager
- getAppManager() : IAppManager
- Get the app manager
- getCache() : ICache
- Returns an ICache instance
- getCertificateManager() : ICertificateManager
- Get the certificate manager
- getCloudIdManager() : ICloudIdManager
- getConfig() : IConfig
- Returns the config manager
- getContactsManager() : IManager
- The contacts manager will act as a broker between consumers for contacts information and providers which actual deliver the contact information.
- getCrypto() : ICrypto
- Returns a Crypto instance
- getDatabaseConnection() : IDBConnection
- Returns the current session
- getEncryptionFilesHelper() : File
- getEncryptionManager() : Manager
- getGroupManager() : IGroupManager
- Returns a group manager
- getHasher() : IHasher
- Returns a Hasher instance
- getJobList() : IJobList
- Returns an job list for controlling background jobs
- getL10N() : IL10N
- get an L10N instance
- getL10NFactory() : IFactory
- getLockingProvider() : ILockingProvider
- Get the locking provider
- getMailer() : IMailer
- Creates a new mailer
- getMemCacheFactory() : ICacheFactory
- Returns an \OCP\CacheFactory instance
- getMimeTypeDetector() : IMimeTypeDetector
- Get the MimeTypeDetector
- getMimeTypeLoader() : IMimeTypeLoader
- Get the MimeTypeLoader
- getNotificationManager() : IManager
- Get the Notification Manager
- getRequest() : IRequest
- The current request object holding all information about the request currently being processed is returned from this method.
- getRootFolder() : IRootFolder
- Returns the root folder of ownCloud's data directory
- getSecureRandom() : ISecureRandom
- Returns a SecureRandom instance
- getSession() : ISession
- Returns the current session
- getTempManager() : ITempManager
- Get the manager for temporary files and folders
- getURLGenerator() : IURLGenerator
- Returns the URL generator
- getUserFolder() : Folder
- Returns a view to ownCloud's files folder
- getUserManager() : IUserManager
- Returns a user manager
- getUserSession() : IUserSession
- Returns the user session
- getWebRoot() : string
- Get the webroot
- query() : mixed
- Look up a service for a given name in the container.
- registerAlias() : mixed
- Shortcut for returning a service from a service under a different key, e.g. to tell the container to return a class when queried for an interface
- registerParameter() : void
- A value is stored in the container with it's corresponding name
- registerService() : void
- A service is registered in the container where a closure is passed in which will actually create the service on demand.
- resolve() : stdClass
Methods
getActivityManager()
Returns the activity manager
public
getActivityManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetAppManager()
Get the app manager
public
getAppManager() : IAppManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IAppManagergetCache()
Returns an ICache instance
public
getCache() : ICache
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICachegetCertificateManager()
Get the certificate manager
public
getCertificateManager() : ICertificateManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICertificateManagergetCloudIdManager()
public
getCloudIdManager() : ICloudIdManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICloudIdManagergetConfig()
Returns the config manager
public
getConfig() : IConfig
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IConfiggetContactsManager()
The contacts manager will act as a broker between consumers for contacts information and providers which actual deliver the contact information.
public
getContactsManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetCrypto()
Returns a Crypto instance
public
getCrypto() : ICrypto
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICryptogetDatabaseConnection()
Returns the current session
public
getDatabaseConnection() : IDBConnection
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IDBConnectiongetEncryptionFilesHelper()
public
getEncryptionFilesHelper() : File
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
FilegetEncryptionManager()
public
getEncryptionManager() : Manager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ManagergetGroupManager()
Returns a group manager
public
getGroupManager() : IGroupManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IGroupManagergetHasher()
Returns a Hasher instance
public
getHasher() : IHasher
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IHashergetJobList()
Returns an job list for controlling background jobs
public
getJobList() : IJobList
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IJobListgetL10N()
get an L10N instance
public
getL10N(string $app[, string $lang = null ]) : IL10N
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Parameters
- $app : string
-
appid
- $lang : string = null
Tags
Return values
IL10NgetL10NFactory()
public
getL10NFactory() : IFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IFactorygetLockingProvider()
Get the locking provider
public
getLockingProvider() : ILockingProvider
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ILockingProvidergetMailer()
Creates a new mailer
public
getMailer() : IMailer
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IMailergetMemCacheFactory()
Returns an \OCP\CacheFactory instance
public
getMemCacheFactory() : ICacheFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICacheFactorygetMimeTypeDetector()
Get the MimeTypeDetector
public
getMimeTypeDetector() : IMimeTypeDetector
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IMimeTypeDetectorgetMimeTypeLoader()
Get the MimeTypeLoader
public
getMimeTypeLoader() : IMimeTypeLoader
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IMimeTypeLoadergetNotificationManager()
Get the Notification Manager
public
getNotificationManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetRequest()
The current request object holding all information about the request currently being processed is returned from this method.
public
getRequest() : IRequest
have it injected or fetch it through \Psr\Container\ContainerInterface::get
In case the current execution was not initiated by a web request null is returned
Tags
Return values
IRequestgetRootFolder()
Returns the root folder of ownCloud's data directory
public
getRootFolder() : IRootFolder
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IRootFoldergetSecureRandom()
Returns a SecureRandom instance
public
getSecureRandom() : ISecureRandom
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ISecureRandomgetSession()
Returns the current session
public
getSession() : ISession
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ISessiongetTempManager()
Get the manager for temporary files and folders
public
getTempManager() : ITempManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ITempManagergetURLGenerator()
Returns the URL generator
public
getURLGenerator() : IURLGenerator
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IURLGeneratorgetUserFolder()
Returns a view to ownCloud's files folder
public
getUserFolder([string $userId = null ]) : Folder
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Parameters
- $userId : string = null
-
user ID
Tags
Return values
FoldergetUserManager()
Returns a user manager
public
getUserManager() : IUserManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IUserManagergetUserSession()
Returns the user session
public
getUserSession() : IUserSession
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IUserSessiongetWebRoot()
Get the webroot
public
getWebRoot() : string
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
stringquery()
Look up a service for a given name in the container.
public
query(string $name[, bool $autoload = true ]) : mixed
use \Psr\Container\ContainerInterface::get
Parameters
- $name : string
- $autoload : bool = true
-
Should we try to autoload the service. If we are trying to resolve built in types this makes no sense for example
Tags
registerAlias()
Shortcut for returning a service from a service under a different key, e.g. to tell the container to return a class when queried for an interface
public
registerAlias(string $alias, string $target) : mixed
use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerServiceAlias
Parameters
- $alias : string
-
the alias that should be registered
- $target : string
-
the target that should be resolved instead
Tags
registerParameter()
A value is stored in the container with it's corresponding name
public
registerParameter(string $name, mixed $value) : void
use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerParameter
Parameters
- $name : string
- $value : mixed
Tags
registerService()
A service is registered in the container where a closure is passed in which will actually create the service on demand.
public
registerService(string $name, Closure $closure[, bool $shared = true ]) : void
use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerService
In case the parameter $shared is set to true (the default usage) the once created service will remain in memory and be reused on subsequent calls. In case the parameter is false the service will be recreated on every call.
Parameters
- $name : string
- $closure : Closure
- $shared : bool = true
Tags
resolve()
public
resolve(string $name) : stdClass
use \Psr\Container\ContainerInterface::get
Parameters
- $name : string
-
the class name to resolve