diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-21 14:36:40 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2020-07-21 20:44:05 +0200 |
commit | 7870ca06637453f4e72dbd67edbfb3603d813196 (patch) | |
tree | 9f61927799c9baf39e336fa4299d4ac0fe4e34a1 /lib/public/AppFramework/Bootstrap/IBootContext.php | |
parent | 91e7f12088cb87ffef5660429ece404364167978 (diff) | |
download | nextcloud-server-7870ca06637453f4e72dbd67edbfb3603d813196.tar.gz nextcloud-server-7870ca06637453f4e72dbd67edbfb3603d813196.zip |
Use the proper IAppContainer and IServerContainer type hints to know which code runs with which container
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/public/AppFramework/Bootstrap/IBootContext.php')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IBootContext.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IBootContext.php b/lib/public/AppFramework/Bootstrap/IBootContext.php index 86232cef4ad..80a4edf1cd6 100644 --- a/lib/public/AppFramework/Bootstrap/IBootContext.php +++ b/lib/public/AppFramework/Bootstrap/IBootContext.php @@ -28,7 +28,6 @@ namespace OCP\AppFramework\Bootstrap; use OCP\AppFramework\IAppContainer; use OCP\IServerContainer; use Psr\Container\ContainerExceptionInterface; -use Psr\Container\ContainerInterface; use Throwable; /** @@ -41,20 +40,20 @@ interface IBootContext { * * Useful to register and query app-specific services * - * @return ContainerInterface|IAppContainer + * @return IAppContainer * @since 20.0.0 */ - public function getAppContainer(): ContainerInterface; + public function getAppContainer(): IAppContainer; /** * Get hold of the server DI container * * Useful to register and query system-wide services * - * @return ContainerInterface|IServerContainer + * @return IServerContainer * @since 20.0.0 */ - public function getServerContainer(): ContainerInterface; + public function getServerContainer(): IServerContainer; /** * Invoke the given callable and inject all parameters based on their types |