nextcloud/lib/public/IServerContainer.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.5 KiB
PHP
Raw Normal View History

2013-08-20 18:58:15 -04:00
<?php
declare(strict_types=1);
2013-08-30 19:41:24 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2013-08-30 19:41:24 -04:00
*/
namespace OCP;
use Psr\Container\ContainerInterface;
2013-08-20 18:58:15 -04:00
/**
* 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.
2013-08-20 18:58:15 -04:00
*
* @deprecated 20.0.0
*
* @since 6.0.0
2013-08-20 18:58:15 -04:00
*/
interface IServerContainer extends ContainerInterface, IContainer {
/**
* Returns a view to ownCloud's files folder
*
* @param string $userId user ID
* @return \OCP\Files\Folder|null
* @since 6.0.0 - parameter $userId was added in 8.0.0
* @see getUserFolder in \OCP\Files\IRootFolder
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
*/
public function getUserFolder($userId = null);
2013-09-25 12:34:01 -04:00
/**
* get an L10N instance
*
2014-02-28 15:03:43 -05:00
* @param string $app appid
2014-08-31 04:20:00 -04:00
* @param string $lang
2013-09-25 12:34:01 -04:00
* @return \OCP\IL10N
* @since 6.0.0 - parameter $lang was added in 8.0.0
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
2013-09-25 12:34:01 -04:00
*/
public function getL10N($app, $lang = null);
2013-09-25 12:34:01 -04:00
2014-11-27 08:36:11 -05:00
/**
* Get the webroot
*
* @return string
* @since 8.0.0
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
2014-11-27 08:36:11 -05:00
*/
public function getWebRoot(): string;
2013-08-20 18:58:15 -04:00
}