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
- getAppConfig() : IAppConfig
- Returns the app config manager
- getAppManager() : IAppManager
- Get the app manager
- getAvatarManager() : IAvatarManager
- Returns an avatar manager, used for avatar functionality
- getCache() : ICache
- Returns an ICache instance
- getCalendarManager() : IManager
- The calendar manager will act as a broker between consumers for calendar information and providers which actual deliver the calendar information.
- getCalendarResourceBackendManager() : IBackend
- The calendar resource backend manager will act as a broker between consumers for calendar resource information an providers which actual deliver the room information.
- getCalendarRoomBackendManager() : IBackend
- The calendar room backend manager will act as a broker between consumers for calendar room information an providers which actual deliver the room information.
- getCertificateManager() : ICertificateManager
- Get the certificate manager
- getCloudFederationFactory() : ICloudFederationFactory
- getCloudFederationProviderManager() : ICloudFederationProviderManager
- getCloudIdManager() : ICloudIdManager
- getCommandBus() : IBus
- getCommentsManager() : ICommentsManager
- 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.
- getContentSecurityPolicyManager() : IContentSecurityPolicyManager
- getCredentialsManager() : ICredentialsManager
- Returns a CredentialsManager instance
- getCrypto() : ICrypto
- Returns a Crypto instance
- getDatabaseConnection() : IDBConnection
- Returns the current session
- getDateTimeFormatter() : IDateTimeFormatter
- getDateTimeZone() : IDateTimeZone
- getEncryptionFilesHelper() : File
- getEncryptionKeyStorage() : IStorage
- getEncryptionManager() : Manager
- getEventLogger() : IEventLogger
- Get the active event logger
- getGlobalScaleConfig() : IConfig
- getGroupManager() : IGroupManager
- Returns a group manager
- getHasher() : IHasher
- Returns a Hasher instance
- getHTTPClientService() : IClientService
- Returns an instance of the HTTP client service
- getIniWrapper() : IniGetWrapper
- Get the IniWrapper
- getJobList() : IJobList
- Returns an job list for controlling background jobs
- getL10N() : IL10N
- get an L10N instance
- getL10NFactory() : IFactory
- getLockingProvider() : ILockingProvider
- Get the locking provider
- getLogFactory() : ILogFactory
- returns a log factory instance
- getMailer() : IMailer
- Creates a new mailer
- getMemCacheFactory() : ICacheFactory
- Returns an \OCP\CacheFactory instance
- getMimeTypeDetector() : IMimeTypeDetector
- Get the MimeTypeDetector
- getMimeTypeLoader() : IMimeTypeLoader
- Get the MimeTypeLoader
- getMountManager() : IMountManager
- getMountProviderCollection() : IMountProviderCollection
- getNavigationManager() : INavigationManager
- Returns the navigation manager
- getNotificationManager() : IManager
- Get the Notification Manager
- getPreviewManager() : IPreview
- Returns the preview manager which can create preview images for a given file
- getQueryLogger() : IQueryLogger
- Get the active query logger
- getRemoteApiFactory() : IApiFactory
- getRemoteInstanceFactory() : IInstanceFactory
- 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
- getRouter() : IRouter
- Returns a router for generating and matching urls
- getSecureRandom() : ISecureRandom
- Returns a SecureRandom instance
- getSession() : ISession
- Returns the current session
- getShareManager() : IManager
- Returns the share manager
- getStorageFactory() : IStorageFactory
- getSystemTagManager() : ISystemTagManager
- Returns the system-tag manager
- getSystemTagObjectMapper() : ISystemTagObjectMapper
- Returns the system-tag object mapper
- getTagManager() : ITagManager
- Returns the tag manager which can get and set tags for different object types
- 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
IManagergetAppConfig()
Returns the app config manager
public
getAppConfig() : IAppConfig
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IAppConfiggetAppManager()
Get the app manager
public
getAppManager() : IAppManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IAppManagergetAvatarManager()
Returns an avatar manager, used for avatar functionality
public
getAvatarManager() : IAvatarManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IAvatarManagergetCache()
Returns an ICache instance
public
getCache() : ICache
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICachegetCalendarManager()
The calendar manager will act as a broker between consumers for calendar information and providers which actual deliver the calendar information.
public
getCalendarManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetCalendarResourceBackendManager()
The calendar resource backend manager will act as a broker between consumers for calendar resource information an providers which actual deliver the room information.
public
getCalendarResourceBackendManager() : IBackend
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IBackendgetCalendarRoomBackendManager()
The calendar room backend manager will act as a broker between consumers for calendar room information an providers which actual deliver the room information.
public
getCalendarRoomBackendManager() : IBackend
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IBackendgetCertificateManager()
Get the certificate manager
public
getCertificateManager() : ICertificateManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICertificateManagergetCloudFederationFactory()
public
getCloudFederationFactory() : ICloudFederationFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICloudFederationFactorygetCloudFederationProviderManager()
public
getCloudFederationProviderManager() : ICloudFederationProviderManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICloudFederationProviderManagergetCloudIdManager()
public
getCloudIdManager() : ICloudIdManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICloudIdManagergetCommandBus()
public
getCommandBus() : IBus
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IBusgetCommentsManager()
public
getCommentsManager() : ICommentsManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICommentsManagergetConfig()
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
IManagergetContentSecurityPolicyManager()
public
getContentSecurityPolicyManager() : IContentSecurityPolicyManager
Use the AddContentSecurityPolicyEvent
Tags
Return values
IContentSecurityPolicyManagergetCredentialsManager()
Returns a CredentialsManager instance
public
getCredentialsManager() : ICredentialsManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ICredentialsManagergetCrypto()
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
IDBConnectiongetDateTimeFormatter()
public
getDateTimeFormatter() : IDateTimeFormatter
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IDateTimeFormattergetDateTimeZone()
public
getDateTimeZone() : IDateTimeZone
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IDateTimeZonegetEncryptionFilesHelper()
public
getEncryptionFilesHelper() : File
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
FilegetEncryptionKeyStorage()
public
getEncryptionKeyStorage() : IStorage
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IStoragegetEncryptionManager()
public
getEncryptionManager() : Manager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ManagergetEventLogger()
Get the active event logger
public
getEventLogger() : IEventLogger
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IEventLoggergetGlobalScaleConfig()
public
getGlobalScaleConfig() : IConfig
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IConfiggetGroupManager()
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
IHashergetHTTPClientService()
Returns an instance of the HTTP client service
public
getHTTPClientService() : IClientService
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IClientServicegetIniWrapper()
Get the IniWrapper
public
getIniWrapper() : IniGetWrapper
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IniGetWrappergetJobList()
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
ILockingProvidergetLogFactory()
returns a log factory instance
public
getLogFactory() : ILogFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ILogFactorygetMailer()
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
IMimeTypeLoadergetMountManager()
public
getMountManager() : IMountManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IMountManagergetMountProviderCollection()
public
getMountProviderCollection() : IMountProviderCollection
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IMountProviderCollectiongetNavigationManager()
Returns the navigation manager
public
getNavigationManager() : INavigationManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
INavigationManagergetNotificationManager()
Get the Notification Manager
public
getNotificationManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetPreviewManager()
Returns the preview manager which can create preview images for a given file
public
getPreviewManager() : IPreview
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IPreviewgetQueryLogger()
Get the active query logger
public
getQueryLogger() : IQueryLogger
have it injected or fetch it through \Psr\Container\ContainerInterface::get
The returned logger only logs data when debug mode is enabled
Tags
Return values
IQueryLoggergetRemoteApiFactory()
public
getRemoteApiFactory() : IApiFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IApiFactorygetRemoteInstanceFactory()
public
getRemoteInstanceFactory() : IInstanceFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IInstanceFactorygetRequest()
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
IRootFoldergetRouter()
Returns a router for generating and matching urls
public
getRouter() : IRouter
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IRoutergetSecureRandom()
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
ISessiongetShareManager()
Returns the share manager
public
getShareManager() : IManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IManagergetStorageFactory()
public
getStorageFactory() : IStorageFactory
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
IStorageFactorygetSystemTagManager()
Returns the system-tag manager
public
getSystemTagManager() : ISystemTagManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ISystemTagManagergetSystemTagObjectMapper()
Returns the system-tag object mapper
public
getSystemTagObjectMapper() : ISystemTagObjectMapper
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ISystemTagObjectMappergetTagManager()
Returns the tag manager which can get and set tags for different object types
public
getTagManager() : ITagManager
have it injected or fetch it through \Psr\Container\ContainerInterface::get
Tags
Return values
ITagManagergetTempManager()
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