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 /apps/federatedfilesharing/lib | |
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 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/AppInfo/Application.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/federatedfilesharing/lib/AppInfo/Application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php index 1afaa01a48f..48907a88447 100644 --- a/apps/federatedfilesharing/lib/AppInfo/Application.php +++ b/apps/federatedfilesharing/lib/AppInfo/Application.php @@ -37,9 +37,9 @@ use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; +use OCP\AppFramework\IAppContainer; use OCP\Federation\ICloudFederationProviderManager; use OCP\Notification\IManager as INotifiactionManager; -use Psr\Container\ContainerInterface; class Application extends App implements IBootstrap { public function __construct() { @@ -56,11 +56,11 @@ class Application extends App implements IBootstrap { } private function registerCloudFederationProvider(ICloudFederationProviderManager $manager, - ContainerInterface $container): void { + IAppContainer $appContainer): void { $manager->addCloudFederationProvider('file', 'Federated Files Sharing', - function () use ($container) { - return $container->get(CloudFederationProviderFiles::class); + function () use ($appContainer) { + return $appContainer->get(CloudFederationProviderFiles::class); }); } |