2013-08-20 18:58:15 -04:00
|
|
|
<?php
|
2020-07-17 04:17:18 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2013-08-30 19:41:24 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -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
|
|
|
*/
|
2013-08-31 15:34:29 -04:00
|
|
|
namespace OCP;
|
2020-04-09 05:48:10 -04:00
|
|
|
|
2020-07-17 04:17:18 -04:00
|
|
|
use Psr\Container\ContainerInterface;
|
2013-08-20 18:58:15 -04:00
|
|
|
|
|
|
|
|
/**
|
2020-07-17 04:17:18 -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
|
|
|
*
|
2022-04-08 08:16:21 -04:00
|
|
|
* @deprecated 20.0.0
|
|
|
|
|
*
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2013-08-20 18:58:15 -04:00
|
|
|
*/
|
2020-07-17 04:17:18 -04:00
|
|
|
interface IServerContainer extends ContainerInterface, IContainer {
|
2018-06-18 08:33:25 -04:00
|
|
|
|
2013-09-18 06:34:10 -04:00
|
|
|
/**
|
|
|
|
|
* Returns a view to ownCloud's files folder
|
|
|
|
|
*
|
2014-08-31 05:16:40 -04:00
|
|
|
* @param string $userId user ID
|
2025-11-17 09:32:54 -05:00
|
|
|
* @return \OCP\Files\Folder|null
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0 - parameter $userId was added in 8.0.0
|
2015-06-16 10:02:30 -04:00
|
|
|
* @see getUserFolder in \OCP\Files\IRootFolder
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-18 06:34:10 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getUserFolder($userId = null);
|
2013-09-18 06:34:10 -04:00
|
|
|
|
2013-09-25 12:34:01 -04:00
|
|
|
/**
|
|
|
|
|
* get an L10N instance
|
2026-03-09 11:35:12 -04:00
|
|
|
*
|
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
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0 - parameter $lang was added in 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-25 12:34:01 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -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
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-11-27 08:36:11 -05:00
|
|
|
*/
|
2026-03-09 11:35:12 -04:00
|
|
|
public function getWebRoot(): string;
|
2013-08-20 18:58:15 -04:00
|
|
|
}
|