Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-21 15:36:40 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-07-21 21:44:05 +0300
commit7870ca06637453f4e72dbd67edbfb3603d813196 (patch)
tree9f61927799c9baf39e336fa4299d4ac0fe4e34a1 /apps/federatedfilesharing
parent91e7f12088cb87ffef5660429ece404364167978 (diff)
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')
-rw-r--r--apps/federatedfilesharing/lib/AppInfo/Application.php8
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);
});
}