Nextcloud PHP API (master)

Server
in package

FinalYes

Class allowing to inject services into your application. You should use whenever possible dependency injections instead.

use OCP\ITagManager;
use OCP\Server;

$tagManager = Server::get(ITagManager::class);
Tags
since
25.0.0

Table of Contents

Methods

get()  : mixed

Methods

get()

public static get(string $serviceName) : mixed
Parameters
$serviceName : string
Tags
psalm-template

T

psalm-param

class-string<T>|string $serviceName

psalm-return

($serviceName is class-string<T> ? T : mixed)

throws
ContainerExceptionInterface
throws
NotFoundExceptionInterface
since
25.0.0

        
On this page

Search results