mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
refactor(federatedfilesharing): remove use of IAppContainer in favor of ContainerInterface
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
cddd666213
commit
4dba33ffc7
2 changed files with 3 additions and 9 deletions
|
|
@ -7,7 +7,6 @@
|
|||
*/
|
||||
namespace OCA\FederatedFileSharing\AppInfo;
|
||||
|
||||
use Closure;
|
||||
use OCA\FederatedFileSharing\Listeners\LoadAdditionalScriptsListener;
|
||||
use OCA\FederatedFileSharing\Notifier;
|
||||
use OCA\FederatedFileSharing\OCM\CloudFederationProviderFiles;
|
||||
|
|
@ -16,8 +15,8 @@ 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 Psr\Container\ContainerInterface;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public function __construct() {
|
||||
|
|
@ -30,11 +29,11 @@ class Application extends App implements IBootstrap {
|
|||
}
|
||||
|
||||
public function boot(IBootContext $context): void {
|
||||
$context->injectFn(Closure::fromCallable([$this, 'registerCloudFederationProvider']));
|
||||
$context->injectFn($this->registerCloudFederationProvider(...));
|
||||
}
|
||||
|
||||
private function registerCloudFederationProvider(ICloudFederationProviderManager $manager,
|
||||
IAppContainer $appContainer): void {
|
||||
ContainerInterface $appContainer): void {
|
||||
$fileResourceTypes = ['file', 'folder'];
|
||||
foreach ($fileResourceTypes as $type) {
|
||||
$manager->addCloudFederationProvider($type,
|
||||
|
|
|
|||
|
|
@ -1216,11 +1216,6 @@
|
|||
)]]></code>
|
||||
</DeprecatedMethod>
|
||||
</file>
|
||||
<file src="apps/federatedfilesharing/lib/AppInfo/Application.php">
|
||||
<DeprecatedInterface>
|
||||
<code><![CDATA[IAppContainer]]></code>
|
||||
</DeprecatedInterface>
|
||||
</file>
|
||||
<file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php">
|
||||
<InvalidArgument>
|
||||
<code><![CDATA[$id]]></code>
|
||||
|
|
|
|||
Loading…
Reference in a new issue