@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\Theming\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\Theming\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -296,10 +296,10 @@ discard block |
||
296 | 296 | $this->registerParameter('isCLI', \OC::$CLI); |
297 | 297 | $this->registerParameter('serverRoot', \OC::$SERVERROOT); |
298 | 298 | |
299 | - $this->registerService(ContainerInterface::class, function (ContainerInterface $c) { |
|
299 | + $this->registerService(ContainerInterface::class, function(ContainerInterface $c) { |
|
300 | 300 | return $c; |
301 | 301 | }); |
302 | - $this->registerService(\OCP\IServerContainer::class, function (ContainerInterface $c) { |
|
302 | + $this->registerService(\OCP\IServerContainer::class, function(ContainerInterface $c) { |
|
303 | 303 | return $c; |
304 | 304 | }); |
305 | 305 | |
@@ -324,11 +324,11 @@ discard block |
||
324 | 324 | |
325 | 325 | $this->registerAlias(IActionFactory::class, ActionFactory::class); |
326 | 326 | |
327 | - $this->registerService(View::class, function (Server $c) { |
|
327 | + $this->registerService(View::class, function(Server $c) { |
|
328 | 328 | return new View(); |
329 | 329 | }, false); |
330 | 330 | |
331 | - $this->registerService(IPreview::class, function (ContainerInterface $c) { |
|
331 | + $this->registerService(IPreview::class, function(ContainerInterface $c) { |
|
332 | 332 | return new PreviewManager( |
333 | 333 | $c->get(\OCP\IConfig::class), |
334 | 334 | $c->get(IRootFolder::class), |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | /** @deprecated 19.0.0 */ |
350 | 350 | $this->registerDeprecatedAlias('PreviewManager', IPreview::class); |
351 | 351 | |
352 | - $this->registerService(\OC\Preview\Watcher::class, function (ContainerInterface $c) { |
|
352 | + $this->registerService(\OC\Preview\Watcher::class, function(ContainerInterface $c) { |
|
353 | 353 | return new \OC\Preview\Watcher( |
354 | 354 | new \OC\Preview\Storage\Root( |
355 | 355 | $c->get(IRootFolder::class), |
@@ -358,11 +358,11 @@ discard block |
||
358 | 358 | ); |
359 | 359 | }); |
360 | 360 | |
361 | - $this->registerService(IProfiler::class, function (Server $c) { |
|
361 | + $this->registerService(IProfiler::class, function(Server $c) { |
|
362 | 362 | return new Profiler($c->get(SystemConfig::class)); |
363 | 363 | }); |
364 | 364 | |
365 | - $this->registerService(\OCP\Encryption\IManager::class, function (Server $c): Encryption\Manager { |
|
365 | + $this->registerService(\OCP\Encryption\IManager::class, function(Server $c): Encryption\Manager { |
|
366 | 366 | $view = new View(); |
367 | 367 | $util = new Encryption\Util( |
368 | 368 | $view, |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | |
385 | 385 | /** @deprecated 21.0.0 */ |
386 | 386 | $this->registerDeprecatedAlias('EncryptionFileHelper', IFile::class); |
387 | - $this->registerService(IFile::class, function (ContainerInterface $c) { |
|
387 | + $this->registerService(IFile::class, function(ContainerInterface $c) { |
|
388 | 388 | $util = new Encryption\Util( |
389 | 389 | new View(), |
390 | 390 | $c->get(IUserManager::class), |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | |
401 | 401 | /** @deprecated 21.0.0 */ |
402 | 402 | $this->registerDeprecatedAlias('EncryptionKeyStorage', IStorage::class); |
403 | - $this->registerService(IStorage::class, function (ContainerInterface $c) { |
|
403 | + $this->registerService(IStorage::class, function(ContainerInterface $c) { |
|
404 | 404 | $view = new View(); |
405 | 405 | $util = new Encryption\Util( |
406 | 406 | $view, |
@@ -423,22 +423,22 @@ discard block |
||
423 | 423 | /** @deprecated 19.0.0 */ |
424 | 424 | $this->registerDeprecatedAlias('TagManager', \OCP\ITagManager::class); |
425 | 425 | |
426 | - $this->registerService('SystemTagManagerFactory', function (ContainerInterface $c) { |
|
426 | + $this->registerService('SystemTagManagerFactory', function(ContainerInterface $c) { |
|
427 | 427 | /** @var \OCP\IConfig $config */ |
428 | 428 | $config = $c->get(\OCP\IConfig::class); |
429 | 429 | $factoryClass = $config->getSystemValue('systemtags.managerFactory', SystemTagManagerFactory::class); |
430 | 430 | return new $factoryClass($this); |
431 | 431 | }); |
432 | - $this->registerService(ISystemTagManager::class, function (ContainerInterface $c) { |
|
432 | + $this->registerService(ISystemTagManager::class, function(ContainerInterface $c) { |
|
433 | 433 | return $c->get('SystemTagManagerFactory')->getManager(); |
434 | 434 | }); |
435 | 435 | /** @deprecated 19.0.0 */ |
436 | 436 | $this->registerDeprecatedAlias('SystemTagManager', ISystemTagManager::class); |
437 | 437 | |
438 | - $this->registerService(ISystemTagObjectMapper::class, function (ContainerInterface $c) { |
|
438 | + $this->registerService(ISystemTagObjectMapper::class, function(ContainerInterface $c) { |
|
439 | 439 | return $c->get('SystemTagManagerFactory')->getObjectMapper(); |
440 | 440 | }); |
441 | - $this->registerService('RootFolder', function (ContainerInterface $c) { |
|
441 | + $this->registerService('RootFolder', function(ContainerInterface $c) { |
|
442 | 442 | $manager = \OC\Files\Filesystem::getMountManager(null); |
443 | 443 | $view = new View(); |
444 | 444 | $root = new Root( |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | |
460 | 460 | return $root; |
461 | 461 | }); |
462 | - $this->registerService(HookConnector::class, function (ContainerInterface $c) { |
|
462 | + $this->registerService(HookConnector::class, function(ContainerInterface $c) { |
|
463 | 463 | return new HookConnector( |
464 | 464 | $c->get(IRootFolder::class), |
465 | 465 | new View(), |
@@ -471,8 +471,8 @@ discard block |
||
471 | 471 | /** @deprecated 19.0.0 */ |
472 | 472 | $this->registerDeprecatedAlias('SystemTagObjectMapper', ISystemTagObjectMapper::class); |
473 | 473 | |
474 | - $this->registerService(IRootFolder::class, function (ContainerInterface $c) { |
|
475 | - return new LazyRoot(function () use ($c) { |
|
474 | + $this->registerService(IRootFolder::class, function(ContainerInterface $c) { |
|
475 | + return new LazyRoot(function() use ($c) { |
|
476 | 476 | return $c->get('RootFolder'); |
477 | 477 | }); |
478 | 478 | }); |
@@ -483,53 +483,53 @@ discard block |
||
483 | 483 | $this->registerDeprecatedAlias('UserManager', \OC\User\Manager::class); |
484 | 484 | $this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class); |
485 | 485 | |
486 | - $this->registerService(DisplayNameCache::class, function (ContainerInterface $c) { |
|
486 | + $this->registerService(DisplayNameCache::class, function(ContainerInterface $c) { |
|
487 | 487 | return $c->get(\OC\User\Manager::class)->getDisplayNameCache(); |
488 | 488 | }); |
489 | 489 | |
490 | - $this->registerService(\OCP\IGroupManager::class, function (ContainerInterface $c) { |
|
490 | + $this->registerService(\OCP\IGroupManager::class, function(ContainerInterface $c) { |
|
491 | 491 | $groupManager = new \OC\Group\Manager( |
492 | 492 | $this->get(IUserManager::class), |
493 | 493 | $c->get(SymfonyAdapter::class), |
494 | 494 | $this->get(LoggerInterface::class), |
495 | 495 | $this->get(ICacheFactory::class) |
496 | 496 | ); |
497 | - $groupManager->listen('\OC\Group', 'preCreate', function ($gid) { |
|
497 | + $groupManager->listen('\OC\Group', 'preCreate', function($gid) { |
|
498 | 498 | /** @var IEventDispatcher $dispatcher */ |
499 | 499 | $dispatcher = $this->get(IEventDispatcher::class); |
500 | 500 | $dispatcher->dispatchTyped(new BeforeGroupCreatedEvent($gid)); |
501 | 501 | }); |
502 | - $groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $group) { |
|
502 | + $groupManager->listen('\OC\Group', 'postCreate', function(\OC\Group\Group $group) { |
|
503 | 503 | /** @var IEventDispatcher $dispatcher */ |
504 | 504 | $dispatcher = $this->get(IEventDispatcher::class); |
505 | 505 | $dispatcher->dispatchTyped(new GroupCreatedEvent($group)); |
506 | 506 | }); |
507 | - $groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) { |
|
507 | + $groupManager->listen('\OC\Group', 'preDelete', function(\OC\Group\Group $group) { |
|
508 | 508 | /** @var IEventDispatcher $dispatcher */ |
509 | 509 | $dispatcher = $this->get(IEventDispatcher::class); |
510 | 510 | $dispatcher->dispatchTyped(new BeforeGroupDeletedEvent($group)); |
511 | 511 | }); |
512 | - $groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) { |
|
512 | + $groupManager->listen('\OC\Group', 'postDelete', function(\OC\Group\Group $group) { |
|
513 | 513 | /** @var IEventDispatcher $dispatcher */ |
514 | 514 | $dispatcher = $this->get(IEventDispatcher::class); |
515 | 515 | $dispatcher->dispatchTyped(new GroupDeletedEvent($group)); |
516 | 516 | }); |
517 | - $groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
517 | + $groupManager->listen('\OC\Group', 'preAddUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
518 | 518 | /** @var IEventDispatcher $dispatcher */ |
519 | 519 | $dispatcher = $this->get(IEventDispatcher::class); |
520 | 520 | $dispatcher->dispatchTyped(new BeforeUserAddedEvent($group, $user)); |
521 | 521 | }); |
522 | - $groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
522 | + $groupManager->listen('\OC\Group', 'postAddUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
523 | 523 | /** @var IEventDispatcher $dispatcher */ |
524 | 524 | $dispatcher = $this->get(IEventDispatcher::class); |
525 | 525 | $dispatcher->dispatchTyped(new UserAddedEvent($group, $user)); |
526 | 526 | }); |
527 | - $groupManager->listen('\OC\Group', 'preRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
527 | + $groupManager->listen('\OC\Group', 'preRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
528 | 528 | /** @var IEventDispatcher $dispatcher */ |
529 | 529 | $dispatcher = $this->get(IEventDispatcher::class); |
530 | 530 | $dispatcher->dispatchTyped(new BeforeUserRemovedEvent($group, $user)); |
531 | 531 | }); |
532 | - $groupManager->listen('\OC\Group', 'postRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
532 | + $groupManager->listen('\OC\Group', 'postRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
533 | 533 | /** @var IEventDispatcher $dispatcher */ |
534 | 534 | $dispatcher = $this->get(IEventDispatcher::class); |
535 | 535 | $dispatcher->dispatchTyped(new UserRemovedEvent($group, $user)); |
@@ -539,7 +539,7 @@ discard block |
||
539 | 539 | /** @deprecated 19.0.0 */ |
540 | 540 | $this->registerDeprecatedAlias('GroupManager', \OCP\IGroupManager::class); |
541 | 541 | |
542 | - $this->registerService(Store::class, function (ContainerInterface $c) { |
|
542 | + $this->registerService(Store::class, function(ContainerInterface $c) { |
|
543 | 543 | $session = $c->get(ISession::class); |
544 | 544 | if (\OC::$server->get(SystemConfig::class)->getValue('installed', false)) { |
545 | 545 | $tokenProvider = $c->get(IProvider::class); |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | $this->registerAlias(IProvider::class, Authentication\Token\Manager::class); |
554 | 554 | $this->registerAlias(OCPIProvider::class, Authentication\Token\Manager::class); |
555 | 555 | |
556 | - $this->registerService(\OC\User\Session::class, function (Server $c) { |
|
556 | + $this->registerService(\OC\User\Session::class, function(Server $c) { |
|
557 | 557 | $manager = $c->get(IUserManager::class); |
558 | 558 | $session = new \OC\Session\Memory(''); |
559 | 559 | $timeFactory = new TimeFactory(); |
@@ -579,26 +579,26 @@ discard block |
||
579 | 579 | $c->get(IEventDispatcher::class) |
580 | 580 | ); |
581 | 581 | /** @deprecated 21.0.0 use BeforeUserCreatedEvent event with the IEventDispatcher instead */ |
582 | - $userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) { |
|
582 | + $userSession->listen('\OC\User', 'preCreateUser', function($uid, $password) { |
|
583 | 583 | \OC_Hook::emit('OC_User', 'pre_createUser', ['run' => true, 'uid' => $uid, 'password' => $password]); |
584 | 584 | }); |
585 | 585 | /** @deprecated 21.0.0 use UserCreatedEvent event with the IEventDispatcher instead */ |
586 | - $userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) { |
|
586 | + $userSession->listen('\OC\User', 'postCreateUser', function($user, $password) { |
|
587 | 587 | /** @var \OC\User\User $user */ |
588 | 588 | \OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]); |
589 | 589 | }); |
590 | 590 | /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */ |
591 | - $userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) { |
|
591 | + $userSession->listen('\OC\User', 'preDelete', function($user) use ($legacyDispatcher) { |
|
592 | 592 | /** @var \OC\User\User $user */ |
593 | 593 | \OC_Hook::emit('OC_User', 'pre_deleteUser', ['run' => true, 'uid' => $user->getUID()]); |
594 | 594 | $legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user)); |
595 | 595 | }); |
596 | 596 | /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */ |
597 | - $userSession->listen('\OC\User', 'postDelete', function ($user) { |
|
597 | + $userSession->listen('\OC\User', 'postDelete', function($user) { |
|
598 | 598 | /** @var \OC\User\User $user */ |
599 | 599 | \OC_Hook::emit('OC_User', 'post_deleteUser', ['uid' => $user->getUID()]); |
600 | 600 | }); |
601 | - $userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) { |
|
601 | + $userSession->listen('\OC\User', 'preSetPassword', function($user, $password, $recoveryPassword) { |
|
602 | 602 | /** @var \OC\User\User $user */ |
603 | 603 | \OC_Hook::emit('OC_User', 'pre_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]); |
604 | 604 | |
@@ -606,7 +606,7 @@ discard block |
||
606 | 606 | $dispatcher = $this->get(IEventDispatcher::class); |
607 | 607 | $dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword)); |
608 | 608 | }); |
609 | - $userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) { |
|
609 | + $userSession->listen('\OC\User', 'postSetPassword', function($user, $password, $recoveryPassword) { |
|
610 | 610 | /** @var \OC\User\User $user */ |
611 | 611 | \OC_Hook::emit('OC_User', 'post_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]); |
612 | 612 | |
@@ -614,14 +614,14 @@ discard block |
||
614 | 614 | $dispatcher = $this->get(IEventDispatcher::class); |
615 | 615 | $dispatcher->dispatchTyped(new PasswordUpdatedEvent($user, $password, $recoveryPassword)); |
616 | 616 | }); |
617 | - $userSession->listen('\OC\User', 'preLogin', function ($uid, $password) { |
|
617 | + $userSession->listen('\OC\User', 'preLogin', function($uid, $password) { |
|
618 | 618 | \OC_Hook::emit('OC_User', 'pre_login', ['run' => true, 'uid' => $uid, 'password' => $password]); |
619 | 619 | |
620 | 620 | /** @var IEventDispatcher $dispatcher */ |
621 | 621 | $dispatcher = $this->get(IEventDispatcher::class); |
622 | 622 | $dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password)); |
623 | 623 | }); |
624 | - $userSession->listen('\OC\User', 'postLogin', function ($user, $loginName, $password, $isTokenLogin) { |
|
624 | + $userSession->listen('\OC\User', 'postLogin', function($user, $loginName, $password, $isTokenLogin) { |
|
625 | 625 | /** @var \OC\User\User $user */ |
626 | 626 | \OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'loginName' => $loginName, 'password' => $password, 'isTokenLogin' => $isTokenLogin]); |
627 | 627 | |
@@ -629,12 +629,12 @@ discard block |
||
629 | 629 | $dispatcher = $this->get(IEventDispatcher::class); |
630 | 630 | $dispatcher->dispatchTyped(new UserLoggedInEvent($user, $loginName, $password, $isTokenLogin)); |
631 | 631 | }); |
632 | - $userSession->listen('\OC\User', 'preRememberedLogin', function ($uid) { |
|
632 | + $userSession->listen('\OC\User', 'preRememberedLogin', function($uid) { |
|
633 | 633 | /** @var IEventDispatcher $dispatcher */ |
634 | 634 | $dispatcher = $this->get(IEventDispatcher::class); |
635 | 635 | $dispatcher->dispatchTyped(new BeforeUserLoggedInWithCookieEvent($uid)); |
636 | 636 | }); |
637 | - $userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) { |
|
637 | + $userSession->listen('\OC\User', 'postRememberedLogin', function($user, $password) { |
|
638 | 638 | /** @var \OC\User\User $user */ |
639 | 639 | \OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password]); |
640 | 640 | |
@@ -642,19 +642,19 @@ discard block |
||
642 | 642 | $dispatcher = $this->get(IEventDispatcher::class); |
643 | 643 | $dispatcher->dispatchTyped(new UserLoggedInWithCookieEvent($user, $password)); |
644 | 644 | }); |
645 | - $userSession->listen('\OC\User', 'logout', function ($user) { |
|
645 | + $userSession->listen('\OC\User', 'logout', function($user) { |
|
646 | 646 | \OC_Hook::emit('OC_User', 'logout', []); |
647 | 647 | |
648 | 648 | /** @var IEventDispatcher $dispatcher */ |
649 | 649 | $dispatcher = $this->get(IEventDispatcher::class); |
650 | 650 | $dispatcher->dispatchTyped(new BeforeUserLoggedOutEvent($user)); |
651 | 651 | }); |
652 | - $userSession->listen('\OC\User', 'postLogout', function ($user) { |
|
652 | + $userSession->listen('\OC\User', 'postLogout', function($user) { |
|
653 | 653 | /** @var IEventDispatcher $dispatcher */ |
654 | 654 | $dispatcher = $this->get(IEventDispatcher::class); |
655 | 655 | $dispatcher->dispatchTyped(new UserLoggedOutEvent($user)); |
656 | 656 | }); |
657 | - $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) { |
|
657 | + $userSession->listen('\OC\User', 'changeUser', function($user, $feature, $value, $oldValue) { |
|
658 | 658 | /** @var \OC\User\User $user */ |
659 | 659 | \OC_Hook::emit('OC_User', 'changeUser', ['run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue]); |
660 | 660 | |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | $this->registerDeprecatedAlias('AllConfig', \OC\AllConfig::class); |
679 | 679 | $this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class); |
680 | 680 | |
681 | - $this->registerService(\OC\SystemConfig::class, function ($c) use ($config) { |
|
681 | + $this->registerService(\OC\SystemConfig::class, function($c) use ($config) { |
|
682 | 682 | return new \OC\SystemConfig($config); |
683 | 683 | }); |
684 | 684 | /** @deprecated 19.0.0 */ |
@@ -688,7 +688,7 @@ discard block |
||
688 | 688 | $this->registerDeprecatedAlias('AppConfig', \OC\AppConfig::class); |
689 | 689 | $this->registerAlias(IAppConfig::class, \OC\AppConfig::class); |
690 | 690 | |
691 | - $this->registerService(IFactory::class, function (Server $c) { |
|
691 | + $this->registerService(IFactory::class, function(Server $c) { |
|
692 | 692 | return new \OC\L10N\Factory( |
693 | 693 | $c->get(\OCP\IConfig::class), |
694 | 694 | $c->getRequest(), |
@@ -709,13 +709,13 @@ discard block |
||
709 | 709 | /** @deprecated 19.0.0 */ |
710 | 710 | $this->registerDeprecatedAlias('CategoryFetcher', CategoryFetcher::class); |
711 | 711 | |
712 | - $this->registerService(ICache::class, function ($c) { |
|
712 | + $this->registerService(ICache::class, function($c) { |
|
713 | 713 | return new Cache\File(); |
714 | 714 | }); |
715 | 715 | /** @deprecated 19.0.0 */ |
716 | 716 | $this->registerDeprecatedAlias('UserCache', ICache::class); |
717 | 717 | |
718 | - $this->registerService(Factory::class, function (Server $c) { |
|
718 | + $this->registerService(Factory::class, function(Server $c) { |
|
719 | 719 | $profiler = $c->get(IProfiler::class); |
720 | 720 | $arrayCacheFactory = new \OC\Memcache\Factory('', $c->get(LoggerInterface::class), |
721 | 721 | $profiler, |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | $version = implode(',', $v); |
742 | 742 | $instanceId = \OC_Util::getInstanceId(); |
743 | 743 | $path = \OC::$SERVERROOT; |
744 | - $prefix = md5($instanceId . '-' . $version . '-' . $path); |
|
744 | + $prefix = md5($instanceId.'-'.$version.'-'.$path); |
|
745 | 745 | return new \OC\Memcache\Factory($prefix, |
746 | 746 | $c->get(LoggerInterface::class), |
747 | 747 | $profiler, |
@@ -757,12 +757,12 @@ discard block |
||
757 | 757 | $this->registerDeprecatedAlias('MemCacheFactory', Factory::class); |
758 | 758 | $this->registerAlias(ICacheFactory::class, Factory::class); |
759 | 759 | |
760 | - $this->registerService('RedisFactory', function (Server $c) { |
|
760 | + $this->registerService('RedisFactory', function(Server $c) { |
|
761 | 761 | $systemConfig = $c->get(SystemConfig::class); |
762 | 762 | return new RedisFactory($systemConfig, $c->getEventLogger()); |
763 | 763 | }); |
764 | 764 | |
765 | - $this->registerService(\OCP\Activity\IManager::class, function (Server $c) { |
|
765 | + $this->registerService(\OCP\Activity\IManager::class, function(Server $c) { |
|
766 | 766 | $l10n = $this->get(IFactory::class)->get('lib'); |
767 | 767 | return new \OC\Activity\Manager( |
768 | 768 | $c->getRequest(), |
@@ -775,14 +775,14 @@ discard block |
||
775 | 775 | /** @deprecated 19.0.0 */ |
776 | 776 | $this->registerDeprecatedAlias('ActivityManager', \OCP\Activity\IManager::class); |
777 | 777 | |
778 | - $this->registerService(\OCP\Activity\IEventMerger::class, function (Server $c) { |
|
778 | + $this->registerService(\OCP\Activity\IEventMerger::class, function(Server $c) { |
|
779 | 779 | return new \OC\Activity\EventMerger( |
780 | 780 | $c->getL10N('lib') |
781 | 781 | ); |
782 | 782 | }); |
783 | 783 | $this->registerAlias(IValidator::class, Validator::class); |
784 | 784 | |
785 | - $this->registerService(AvatarManager::class, function (Server $c) { |
|
785 | + $this->registerService(AvatarManager::class, function(Server $c) { |
|
786 | 786 | return new AvatarManager( |
787 | 787 | $c->get(IUserSession::class), |
788 | 788 | $c->get(\OC\User\Manager::class), |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | $this->registerAlias(\OCP\Support\Subscription\IRegistry::class, \OC\Support\Subscription\Registry::class); |
804 | 804 | $this->registerAlias(\OCP\Support\Subscription\IAssertion::class, \OC\Support\Subscription\Assertion::class); |
805 | 805 | |
806 | - $this->registerService(\OC\Log::class, function (Server $c) { |
|
806 | + $this->registerService(\OC\Log::class, function(Server $c) { |
|
807 | 807 | $logType = $c->get(AllConfig::class)->getSystemValue('log_type', 'file'); |
808 | 808 | $factory = new LogFactory($c, $this->get(SystemConfig::class)); |
809 | 809 | $logger = $factory->get($logType); |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | // PSR-3 logger |
818 | 818 | $this->registerAlias(LoggerInterface::class, PsrLoggerAdapter::class); |
819 | 819 | |
820 | - $this->registerService(ILogFactory::class, function (Server $c) { |
|
820 | + $this->registerService(ILogFactory::class, function(Server $c) { |
|
821 | 821 | return new LogFactory($c, $this->get(SystemConfig::class)); |
822 | 822 | }); |
823 | 823 | |
@@ -825,7 +825,7 @@ discard block |
||
825 | 825 | /** @deprecated 19.0.0 */ |
826 | 826 | $this->registerDeprecatedAlias('JobList', IJobList::class); |
827 | 827 | |
828 | - $this->registerService(Router::class, function (Server $c) { |
|
828 | + $this->registerService(Router::class, function(Server $c) { |
|
829 | 829 | $cacheFactory = $c->get(ICacheFactory::class); |
830 | 830 | if ($cacheFactory->isLocalCacheAvailable()) { |
831 | 831 | $router = $c->resolve(CachingRouter::class); |
@@ -842,7 +842,7 @@ discard block |
||
842 | 842 | /** @deprecated 19.0.0 */ |
843 | 843 | $this->registerDeprecatedAlias('Search', ISearch::class); |
844 | 844 | |
845 | - $this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) { |
|
845 | + $this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function($c) { |
|
846 | 846 | $cacheFactory = $c->get(ICacheFactory::class); |
847 | 847 | if ($cacheFactory->isAvailable()) { |
848 | 848 | $backend = new \OC\Security\RateLimiting\Backend\MemoryCacheBackend( |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | $this->registerDeprecatedAlias('CredentialsManager', ICredentialsManager::class); |
879 | 879 | |
880 | 880 | $this->registerAlias(IDBConnection::class, ConnectionAdapter::class); |
881 | - $this->registerService(Connection::class, function (Server $c) { |
|
881 | + $this->registerService(Connection::class, function(Server $c) { |
|
882 | 882 | $systemConfig = $c->get(SystemConfig::class); |
883 | 883 | $factory = new \OC\DB\ConnectionFactory($systemConfig); |
884 | 884 | $type = $systemConfig->getValue('dbtype', 'sqlite'); |
@@ -894,19 +894,19 @@ discard block |
||
894 | 894 | |
895 | 895 | $this->registerAlias(ICertificateManager::class, CertificateManager::class); |
896 | 896 | $this->registerAlias(IClientService::class, ClientService::class); |
897 | - $this->registerService(NegativeDnsCache::class, function (ContainerInterface $c) { |
|
897 | + $this->registerService(NegativeDnsCache::class, function(ContainerInterface $c) { |
|
898 | 898 | return new NegativeDnsCache( |
899 | 899 | $c->get(ICacheFactory::class), |
900 | 900 | ); |
901 | 901 | }); |
902 | 902 | $this->registerDeprecatedAlias('HttpClientService', IClientService::class); |
903 | - $this->registerService(IEventLogger::class, function (ContainerInterface $c) { |
|
903 | + $this->registerService(IEventLogger::class, function(ContainerInterface $c) { |
|
904 | 904 | return new EventLogger($c->get(SystemConfig::class), $c->get(LoggerInterface::class), $c->get(Log::class)); |
905 | 905 | }); |
906 | 906 | /** @deprecated 19.0.0 */ |
907 | 907 | $this->registerDeprecatedAlias('EventLogger', IEventLogger::class); |
908 | 908 | |
909 | - $this->registerService(IQueryLogger::class, function (ContainerInterface $c) { |
|
909 | + $this->registerService(IQueryLogger::class, function(ContainerInterface $c) { |
|
910 | 910 | $queryLogger = new QueryLogger(); |
911 | 911 | if ($c->get(SystemConfig::class)->getValue('debug', false)) { |
912 | 912 | // In debug mode, module is being activated by default |
@@ -921,7 +921,7 @@ discard block |
||
921 | 921 | $this->registerDeprecatedAlias('TempManager', TempManager::class); |
922 | 922 | $this->registerAlias(ITempManager::class, TempManager::class); |
923 | 923 | |
924 | - $this->registerService(AppManager::class, function (ContainerInterface $c) { |
|
924 | + $this->registerService(AppManager::class, function(ContainerInterface $c) { |
|
925 | 925 | // TODO: use auto-wiring |
926 | 926 | return new \OC\App\AppManager( |
927 | 927 | $c->get(IUserSession::class), |
@@ -942,7 +942,7 @@ discard block |
||
942 | 942 | /** @deprecated 19.0.0 */ |
943 | 943 | $this->registerDeprecatedAlias('DateTimeZone', IDateTimeZone::class); |
944 | 944 | |
945 | - $this->registerService(IDateTimeFormatter::class, function (Server $c) { |
|
945 | + $this->registerService(IDateTimeFormatter::class, function(Server $c) { |
|
946 | 946 | $language = $c->get(\OCP\IConfig::class)->getUserValue($c->get(ISession::class)->get('user_id'), 'core', 'lang', null); |
947 | 947 | |
948 | 948 | return new DateTimeFormatter( |
@@ -953,7 +953,7 @@ discard block |
||
953 | 953 | /** @deprecated 19.0.0 */ |
954 | 954 | $this->registerDeprecatedAlias('DateTimeFormatter', IDateTimeFormatter::class); |
955 | 955 | |
956 | - $this->registerService(IUserMountCache::class, function (ContainerInterface $c) { |
|
956 | + $this->registerService(IUserMountCache::class, function(ContainerInterface $c) { |
|
957 | 957 | $mountCache = $c->get(UserMountCache::class); |
958 | 958 | $listener = new UserMountCacheListener($mountCache); |
959 | 959 | $listener->listen($c->get(IUserManager::class)); |
@@ -962,7 +962,7 @@ discard block |
||
962 | 962 | /** @deprecated 19.0.0 */ |
963 | 963 | $this->registerDeprecatedAlias('UserMountCache', IUserMountCache::class); |
964 | 964 | |
965 | - $this->registerService(IMountProviderCollection::class, function (ContainerInterface $c) { |
|
965 | + $this->registerService(IMountProviderCollection::class, function(ContainerInterface $c) { |
|
966 | 966 | $loader = $c->get(IStorageFactory::class); |
967 | 967 | $mountCache = $c->get(IUserMountCache::class); |
968 | 968 | $eventLogger = $c->get(IEventLogger::class); |
@@ -985,7 +985,7 @@ discard block |
||
985 | 985 | |
986 | 986 | /** @deprecated 20.0.0 */ |
987 | 987 | $this->registerDeprecatedAlias('IniWrapper', IniGetWrapper::class); |
988 | - $this->registerService(IBus::class, function (ContainerInterface $c) { |
|
988 | + $this->registerService(IBus::class, function(ContainerInterface $c) { |
|
989 | 989 | $busClass = $c->get(\OCP\IConfig::class)->getSystemValue('commandbus'); |
990 | 990 | if ($busClass) { |
991 | 991 | [$app, $class] = explode('::', $busClass, 2); |
@@ -1007,7 +1007,7 @@ discard block |
||
1007 | 1007 | /** @deprecated 19.0.0 */ |
1008 | 1008 | $this->registerDeprecatedAlias('Throttler', Throttler::class); |
1009 | 1009 | $this->registerAlias(IThrottler::class, Throttler::class); |
1010 | - $this->registerService('IntegrityCodeChecker', function (ContainerInterface $c) { |
|
1010 | + $this->registerService('IntegrityCodeChecker', function(ContainerInterface $c) { |
|
1011 | 1011 | // IConfig and IAppManager requires a working database. This code |
1012 | 1012 | // might however be called when ownCloud is not yet setup. |
1013 | 1013 | if (\OC::$server->get(SystemConfig::class)->getValue('installed', false)) { |
@@ -1028,7 +1028,7 @@ discard block |
||
1028 | 1028 | $c->get(IMimeTypeDetector::class) |
1029 | 1029 | ); |
1030 | 1030 | }); |
1031 | - $this->registerService(\OCP\IRequest::class, function (ContainerInterface $c) { |
|
1031 | + $this->registerService(\OCP\IRequest::class, function(ContainerInterface $c) { |
|
1032 | 1032 | if (isset($this['urlParams'])) { |
1033 | 1033 | $urlParams = $this['urlParams']; |
1034 | 1034 | } else { |
@@ -1065,14 +1065,14 @@ discard block |
||
1065 | 1065 | /** @deprecated 19.0.0 */ |
1066 | 1066 | $this->registerDeprecatedAlias('Request', \OCP\IRequest::class); |
1067 | 1067 | |
1068 | - $this->registerService(IRequestId::class, function (ContainerInterface $c): IRequestId { |
|
1068 | + $this->registerService(IRequestId::class, function(ContainerInterface $c): IRequestId { |
|
1069 | 1069 | return new RequestId( |
1070 | 1070 | $_SERVER['UNIQUE_ID'] ?? '', |
1071 | 1071 | $this->get(ISecureRandom::class) |
1072 | 1072 | ); |
1073 | 1073 | }); |
1074 | 1074 | |
1075 | - $this->registerService(IMailer::class, function (Server $c) { |
|
1075 | + $this->registerService(IMailer::class, function(Server $c) { |
|
1076 | 1076 | return new Mailer( |
1077 | 1077 | $c->get(\OCP\IConfig::class), |
1078 | 1078 | $c->get(LoggerInterface::class), |
@@ -1089,7 +1089,7 @@ discard block |
||
1089 | 1089 | /** @deprecated 21.0.0 */ |
1090 | 1090 | $this->registerDeprecatedAlias('LDAPProvider', ILDAPProvider::class); |
1091 | 1091 | |
1092 | - $this->registerService(ILDAPProviderFactory::class, function (ContainerInterface $c) { |
|
1092 | + $this->registerService(ILDAPProviderFactory::class, function(ContainerInterface $c) { |
|
1093 | 1093 | $config = $c->get(\OCP\IConfig::class); |
1094 | 1094 | $factoryClass = $config->getSystemValue('ldapProviderFactory', null); |
1095 | 1095 | if (is_null($factoryClass) || !class_exists($factoryClass)) { |
@@ -1098,11 +1098,11 @@ discard block |
||
1098 | 1098 | /** @var \OCP\LDAP\ILDAPProviderFactory $factory */ |
1099 | 1099 | return new $factoryClass($this); |
1100 | 1100 | }); |
1101 | - $this->registerService(ILDAPProvider::class, function (ContainerInterface $c) { |
|
1101 | + $this->registerService(ILDAPProvider::class, function(ContainerInterface $c) { |
|
1102 | 1102 | $factory = $c->get(ILDAPProviderFactory::class); |
1103 | 1103 | return $factory->getLDAPProvider(); |
1104 | 1104 | }); |
1105 | - $this->registerService(ILockingProvider::class, function (ContainerInterface $c) { |
|
1105 | + $this->registerService(ILockingProvider::class, function(ContainerInterface $c) { |
|
1106 | 1106 | $ini = $c->get(IniGetWrapper::class); |
1107 | 1107 | $config = $c->get(\OCP\IConfig::class); |
1108 | 1108 | $ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time'))); |
@@ -1125,12 +1125,12 @@ discard block |
||
1125 | 1125 | /** @deprecated 19.0.0 */ |
1126 | 1126 | $this->registerDeprecatedAlias('LockingProvider', ILockingProvider::class); |
1127 | 1127 | |
1128 | - $this->registerService(ILockManager::class, function (Server $c): LockManager { |
|
1128 | + $this->registerService(ILockManager::class, function(Server $c): LockManager { |
|
1129 | 1129 | return new LockManager(); |
1130 | 1130 | }); |
1131 | 1131 | |
1132 | 1132 | $this->registerAlias(ILockdownManager::class, 'LockdownManager'); |
1133 | - $this->registerService(SetupManager::class, function ($c) { |
|
1133 | + $this->registerService(SetupManager::class, function($c) { |
|
1134 | 1134 | // create the setupmanager through the mount manager to resolve the cyclic dependency |
1135 | 1135 | return $c->get(\OC\Files\Mount\Manager::class)->getSetupManager(); |
1136 | 1136 | }); |
@@ -1138,12 +1138,12 @@ discard block |
||
1138 | 1138 | /** @deprecated 19.0.0 */ |
1139 | 1139 | $this->registerDeprecatedAlias('MountManager', IMountManager::class); |
1140 | 1140 | |
1141 | - $this->registerService(IMimeTypeDetector::class, function (ContainerInterface $c) { |
|
1141 | + $this->registerService(IMimeTypeDetector::class, function(ContainerInterface $c) { |
|
1142 | 1142 | return new \OC\Files\Type\Detection( |
1143 | 1143 | $c->get(IURLGenerator::class), |
1144 | 1144 | $c->get(LoggerInterface::class), |
1145 | 1145 | \OC::$configDir, |
1146 | - \OC::$SERVERROOT . '/resources/config/' |
|
1146 | + \OC::$SERVERROOT.'/resources/config/' |
|
1147 | 1147 | ); |
1148 | 1148 | }); |
1149 | 1149 | /** @deprecated 19.0.0 */ |
@@ -1152,22 +1152,22 @@ discard block |
||
1152 | 1152 | $this->registerAlias(IMimeTypeLoader::class, Loader::class); |
1153 | 1153 | /** @deprecated 19.0.0 */ |
1154 | 1154 | $this->registerDeprecatedAlias('MimeTypeLoader', IMimeTypeLoader::class); |
1155 | - $this->registerService(BundleFetcher::class, function () { |
|
1155 | + $this->registerService(BundleFetcher::class, function() { |
|
1156 | 1156 | return new BundleFetcher($this->getL10N('lib')); |
1157 | 1157 | }); |
1158 | 1158 | $this->registerAlias(\OCP\Notification\IManager::class, Manager::class); |
1159 | 1159 | /** @deprecated 19.0.0 */ |
1160 | 1160 | $this->registerDeprecatedAlias('NotificationManager', \OCP\Notification\IManager::class); |
1161 | 1161 | |
1162 | - $this->registerService(CapabilitiesManager::class, function (ContainerInterface $c) { |
|
1162 | + $this->registerService(CapabilitiesManager::class, function(ContainerInterface $c) { |
|
1163 | 1163 | $manager = new CapabilitiesManager($c->get(LoggerInterface::class)); |
1164 | - $manager->registerCapability(function () use ($c) { |
|
1164 | + $manager->registerCapability(function() use ($c) { |
|
1165 | 1165 | return new \OC\OCS\CoreCapabilities($c->get(\OCP\IConfig::class)); |
1166 | 1166 | }); |
1167 | - $manager->registerCapability(function () use ($c) { |
|
1167 | + $manager->registerCapability(function() use ($c) { |
|
1168 | 1168 | return $c->get(\OC\Security\Bruteforce\Capabilities::class); |
1169 | 1169 | }); |
1170 | - $manager->registerCapability(function () use ($c) { |
|
1170 | + $manager->registerCapability(function() use ($c) { |
|
1171 | 1171 | return $c->get(MetadataCapabilities::class); |
1172 | 1172 | }); |
1173 | 1173 | return $manager; |
@@ -1175,14 +1175,14 @@ discard block |
||
1175 | 1175 | /** @deprecated 19.0.0 */ |
1176 | 1176 | $this->registerDeprecatedAlias('CapabilitiesManager', CapabilitiesManager::class); |
1177 | 1177 | |
1178 | - $this->registerService(ICommentsManager::class, function (Server $c) { |
|
1178 | + $this->registerService(ICommentsManager::class, function(Server $c) { |
|
1179 | 1179 | $config = $c->get(\OCP\IConfig::class); |
1180 | 1180 | $factoryClass = $config->getSystemValue('comments.managerFactory', CommentsManagerFactory::class); |
1181 | 1181 | /** @var \OCP\Comments\ICommentsManagerFactory $factory */ |
1182 | 1182 | $factory = new $factoryClass($this); |
1183 | 1183 | $manager = $factory->getManager(); |
1184 | 1184 | |
1185 | - $manager->registerDisplayNameResolver('user', function ($id) use ($c) { |
|
1185 | + $manager->registerDisplayNameResolver('user', function($id) use ($c) { |
|
1186 | 1186 | $manager = $c->get(IUserManager::class); |
1187 | 1187 | $userDisplayName = $manager->getDisplayName($id); |
1188 | 1188 | if ($userDisplayName === null) { |
@@ -1198,7 +1198,7 @@ discard block |
||
1198 | 1198 | $this->registerDeprecatedAlias('CommentsManager', ICommentsManager::class); |
1199 | 1199 | |
1200 | 1200 | $this->registerAlias(\OC_Defaults::class, 'ThemingDefaults'); |
1201 | - $this->registerService('ThemingDefaults', function (Server $c) { |
|
1201 | + $this->registerService('ThemingDefaults', function(Server $c) { |
|
1202 | 1202 | try { |
1203 | 1203 | $classExists = class_exists('OCA\Theming\ThemingDefaults'); |
1204 | 1204 | } catch (\OCP\AutoloadNotAllowedException $e) { |
@@ -1229,7 +1229,7 @@ discard block |
||
1229 | 1229 | } |
1230 | 1230 | return new \OC_Defaults(); |
1231 | 1231 | }); |
1232 | - $this->registerService(JSCombiner::class, function (Server $c) { |
|
1232 | + $this->registerService(JSCombiner::class, function(Server $c) { |
|
1233 | 1233 | return new JSCombiner( |
1234 | 1234 | $c->getAppDataDir('js'), |
1235 | 1235 | $c->get(IURLGenerator::class), |
@@ -1243,7 +1243,7 @@ discard block |
||
1243 | 1243 | $this->registerDeprecatedAlias('EventDispatcher', \OC\EventDispatcher\SymfonyAdapter::class); |
1244 | 1244 | $this->registerAlias(EventDispatcherInterface::class, \OC\EventDispatcher\SymfonyAdapter::class); |
1245 | 1245 | |
1246 | - $this->registerService('CryptoWrapper', function (ContainerInterface $c) { |
|
1246 | + $this->registerService('CryptoWrapper', function(ContainerInterface $c) { |
|
1247 | 1247 | // FIXME: Instantiated here due to cyclic dependency |
1248 | 1248 | $request = new Request( |
1249 | 1249 | [ |
@@ -1270,14 +1270,14 @@ discard block |
||
1270 | 1270 | }); |
1271 | 1271 | /** @deprecated 19.0.0 */ |
1272 | 1272 | $this->registerDeprecatedAlias('CsrfTokenManager', CsrfTokenManager::class); |
1273 | - $this->registerService(SessionStorage::class, function (ContainerInterface $c) { |
|
1273 | + $this->registerService(SessionStorage::class, function(ContainerInterface $c) { |
|
1274 | 1274 | return new SessionStorage($c->get(ISession::class)); |
1275 | 1275 | }); |
1276 | 1276 | $this->registerAlias(\OCP\Security\IContentSecurityPolicyManager::class, ContentSecurityPolicyManager::class); |
1277 | 1277 | /** @deprecated 19.0.0 */ |
1278 | 1278 | $this->registerDeprecatedAlias('ContentSecurityPolicyManager', ContentSecurityPolicyManager::class); |
1279 | 1279 | |
1280 | - $this->registerService(\OCP\Share\IManager::class, function (IServerContainer $c) { |
|
1280 | + $this->registerService(\OCP\Share\IManager::class, function(IServerContainer $c) { |
|
1281 | 1281 | $config = $c->get(\OCP\IConfig::class); |
1282 | 1282 | $factoryClass = $config->getSystemValue('sharing.managerFactory', ProviderFactory::class); |
1283 | 1283 | /** @var \OCP\Share\IProviderFactory $factory */ |
@@ -1309,7 +1309,7 @@ discard block |
||
1309 | 1309 | /** @deprecated 19.0.0 */ |
1310 | 1310 | $this->registerDeprecatedAlias('ShareManager', \OCP\Share\IManager::class); |
1311 | 1311 | |
1312 | - $this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function (Server $c) { |
|
1312 | + $this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function(Server $c) { |
|
1313 | 1313 | $instance = new Collaboration\Collaborators\Search($c); |
1314 | 1314 | |
1315 | 1315 | // register default plugins |
@@ -1334,27 +1334,27 @@ discard block |
||
1334 | 1334 | |
1335 | 1335 | $this->registerDeprecatedAlias('SettingsManager', \OC\Settings\Manager::class); |
1336 | 1336 | $this->registerAlias(\OCP\Settings\IManager::class, \OC\Settings\Manager::class); |
1337 | - $this->registerService(\OC\Files\AppData\Factory::class, function (ContainerInterface $c) { |
|
1337 | + $this->registerService(\OC\Files\AppData\Factory::class, function(ContainerInterface $c) { |
|
1338 | 1338 | return new \OC\Files\AppData\Factory( |
1339 | 1339 | $c->get(IRootFolder::class), |
1340 | 1340 | $c->get(SystemConfig::class) |
1341 | 1341 | ); |
1342 | 1342 | }); |
1343 | 1343 | |
1344 | - $this->registerService('LockdownManager', function (ContainerInterface $c) { |
|
1345 | - return new LockdownManager(function () use ($c) { |
|
1344 | + $this->registerService('LockdownManager', function(ContainerInterface $c) { |
|
1345 | + return new LockdownManager(function() use ($c) { |
|
1346 | 1346 | return $c->get(ISession::class); |
1347 | 1347 | }); |
1348 | 1348 | }); |
1349 | 1349 | |
1350 | - $this->registerService(\OCP\OCS\IDiscoveryService::class, function (ContainerInterface $c) { |
|
1350 | + $this->registerService(\OCP\OCS\IDiscoveryService::class, function(ContainerInterface $c) { |
|
1351 | 1351 | return new DiscoveryService( |
1352 | 1352 | $c->get(ICacheFactory::class), |
1353 | 1353 | $c->get(IClientService::class) |
1354 | 1354 | ); |
1355 | 1355 | }); |
1356 | 1356 | |
1357 | - $this->registerService(ICloudIdManager::class, function (ContainerInterface $c) { |
|
1357 | + $this->registerService(ICloudIdManager::class, function(ContainerInterface $c) { |
|
1358 | 1358 | return new CloudIdManager( |
1359 | 1359 | $c->get(\OCP\Contacts\IManager::class), |
1360 | 1360 | $c->get(IURLGenerator::class), |
@@ -1366,7 +1366,7 @@ discard block |
||
1366 | 1366 | |
1367 | 1367 | $this->registerAlias(\OCP\GlobalScale\IConfig::class, \OC\GlobalScale\Config::class); |
1368 | 1368 | |
1369 | - $this->registerService(ICloudFederationProviderManager::class, function (ContainerInterface $c) { |
|
1369 | + $this->registerService(ICloudFederationProviderManager::class, function(ContainerInterface $c) { |
|
1370 | 1370 | return new CloudFederationProviderManager( |
1371 | 1371 | $c->get(IAppManager::class), |
1372 | 1372 | $c->get(IClientService::class), |
@@ -1375,7 +1375,7 @@ discard block |
||
1375 | 1375 | ); |
1376 | 1376 | }); |
1377 | 1377 | |
1378 | - $this->registerService(ICloudFederationFactory::class, function (Server $c) { |
|
1378 | + $this->registerService(ICloudFederationFactory::class, function(Server $c) { |
|
1379 | 1379 | return new CloudFederationFactory(); |
1380 | 1380 | }); |
1381 | 1381 | |
@@ -1388,7 +1388,7 @@ discard block |
||
1388 | 1388 | /** @deprecated 19.0.0 */ |
1389 | 1389 | $this->registerDeprecatedAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class); |
1390 | 1390 | |
1391 | - $this->registerService(Defaults::class, function (Server $c) { |
|
1391 | + $this->registerService(Defaults::class, function(Server $c) { |
|
1392 | 1392 | return new Defaults( |
1393 | 1393 | $c->getThemingDefaults() |
1394 | 1394 | ); |
@@ -1396,17 +1396,17 @@ discard block |
||
1396 | 1396 | /** @deprecated 19.0.0 */ |
1397 | 1397 | $this->registerDeprecatedAlias('Defaults', \OCP\Defaults::class); |
1398 | 1398 | |
1399 | - $this->registerService(\OCP\ISession::class, function (ContainerInterface $c) { |
|
1399 | + $this->registerService(\OCP\ISession::class, function(ContainerInterface $c) { |
|
1400 | 1400 | return $c->get(\OCP\IUserSession::class)->getSession(); |
1401 | 1401 | }, false); |
1402 | 1402 | |
1403 | - $this->registerService(IShareHelper::class, function (ContainerInterface $c) { |
|
1403 | + $this->registerService(IShareHelper::class, function(ContainerInterface $c) { |
|
1404 | 1404 | return new ShareHelper( |
1405 | 1405 | $c->get(\OCP\Share\IManager::class) |
1406 | 1406 | ); |
1407 | 1407 | }); |
1408 | 1408 | |
1409 | - $this->registerService(Installer::class, function (ContainerInterface $c) { |
|
1409 | + $this->registerService(Installer::class, function(ContainerInterface $c) { |
|
1410 | 1410 | return new Installer( |
1411 | 1411 | $c->get(AppFetcher::class), |
1412 | 1412 | $c->get(IClientService::class), |
@@ -1417,11 +1417,11 @@ discard block |
||
1417 | 1417 | ); |
1418 | 1418 | }); |
1419 | 1419 | |
1420 | - $this->registerService(IApiFactory::class, function (ContainerInterface $c) { |
|
1420 | + $this->registerService(IApiFactory::class, function(ContainerInterface $c) { |
|
1421 | 1421 | return new ApiFactory($c->get(IClientService::class)); |
1422 | 1422 | }); |
1423 | 1423 | |
1424 | - $this->registerService(IInstanceFactory::class, function (ContainerInterface $c) { |
|
1424 | + $this->registerService(IInstanceFactory::class, function(ContainerInterface $c) { |
|
1425 | 1425 | $memcacheFactory = $c->get(ICacheFactory::class); |
1426 | 1426 | return new InstanceFactory($memcacheFactory->createLocal('remoteinstance.'), $c->get(IClientService::class)); |
1427 | 1427 | }); |
@@ -2361,11 +2361,11 @@ discard block |
||
2361 | 2361 | } |
2362 | 2362 | |
2363 | 2363 | private function registerDeprecatedAlias(string $alias, string $target) { |
2364 | - $this->registerService($alias, function (ContainerInterface $container) use ($target, $alias) { |
|
2364 | + $this->registerService($alias, function(ContainerInterface $container) use ($target, $alias) { |
|
2365 | 2365 | try { |
2366 | 2366 | /** @var LoggerInterface $logger */ |
2367 | 2367 | $logger = $container->get(LoggerInterface::class); |
2368 | - $logger->debug('The requested alias "' . $alias . '" is deprecated. Please request "' . $target . '" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']); |
|
2368 | + $logger->debug('The requested alias "'.$alias.'" is deprecated. Please request "'.$target.'" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']); |
|
2369 | 2369 | } catch (ContainerExceptionInterface $e) { |
2370 | 2370 | // Could not get logger. Continue |
2371 | 2371 | } |
@@ -20,6 +20,6 @@ |
||
20 | 20 | ); |
21 | 21 | } |
22 | 22 | |
23 | -require_once __DIR__ . '/composer/autoload_real.php'; |
|
23 | +require_once __DIR__.'/composer/autoload_real.php'; |
|
24 | 24 | |
25 | 25 | return ComposerAutoloaderInitTheming::getLoader(); |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | 'version' => 'dev-master', |
6 | 6 | 'reference' => '20912695daee931f54263e48159f9dd44ab1dad1', |
7 | 7 | 'type' => 'library', |
8 | - 'install_path' => __DIR__ . '/../', |
|
8 | + 'install_path' => __DIR__.'/../', |
|
9 | 9 | 'aliases' => array(), |
10 | 10 | 'dev' => false, |
11 | 11 | ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'version' => 'dev-master', |
16 | 16 | 'reference' => '20912695daee931f54263e48159f9dd44ab1dad1', |
17 | 17 | 'type' => 'library', |
18 | - 'install_path' => __DIR__ . '/../', |
|
18 | + 'install_path' => __DIR__.'/../', |
|
19 | 19 | 'aliases' => array(), |
20 | 20 | 'dev_requirement' => false, |
21 | 21 | ), |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | public static function loadClassLoader($class) |
10 | 10 | { |
11 | 11 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | - require __DIR__ . '/ClassLoader.php'; |
|
12 | + require __DIR__.'/ClassLoader.php'; |
|
13 | 13 | } |
14 | 14 | } |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
27 | 27 | spl_autoload_unregister(array('ComposerAutoloaderInitTheming', 'loadClassLoader')); |
28 | 28 | |
29 | - require __DIR__ . '/autoload_static.php'; |
|
29 | + require __DIR__.'/autoload_static.php'; |
|
30 | 30 | call_user_func(\Composer\Autoload\ComposerStaticInitTheming::getInitializer($loader)); |
31 | 31 | |
32 | 32 | $loader->setClassMapAuthoritative(true); |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | return implode(' || ', $ranges); |
159 | 159 | } |
160 | 160 | |
161 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
161 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | return $installed['versions'][$packageName]['version']; |
180 | 180 | } |
181 | 181 | |
182 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
182 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | /** |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | return $installed['versions'][$packageName]['pretty_version']; |
201 | 201 | } |
202 | 202 | |
203 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
203 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | /** |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | return $installed['versions'][$packageName]['reference']; |
222 | 222 | } |
223 | 223 | |
224 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
224 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | /** |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; |
239 | 239 | } |
240 | 240 | |
241 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); |
|
241 | + throw new \OutOfBoundsException('Package "'.$packageName.'" is not installed'); |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | /** |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | // only require the installed.php file if this file is loaded from its dumped location, |
268 | 268 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
269 | 269 | if (substr(__DIR__, -8, 1) !== 'C') { |
270 | - self::$installed = include __DIR__ . '/installed.php'; |
|
270 | + self::$installed = include __DIR__.'/installed.php'; |
|
271 | 271 | } else { |
272 | 272 | self::$installed = array(); |
273 | 273 | } |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 |
344 | 344 | if (substr(__DIR__, -8, 1) !== 'C') { |
345 | 345 | /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ |
346 | - $required = require __DIR__ . '/installed.php'; |
|
346 | + $required = require __DIR__.'/installed.php'; |
|
347 | 347 | self::$installed = $required; |
348 | 348 | } else { |
349 | 349 | self::$installed = array(); |
@@ -6,59 +6,59 @@ |
||
6 | 6 | |
7 | 7 | class ComposerStaticInitTheming |
8 | 8 | { |
9 | - public static $prefixLengthsPsr4 = array ( |
|
9 | + public static $prefixLengthsPsr4 = array( |
|
10 | 10 | 'O' => |
11 | - array ( |
|
11 | + array( |
|
12 | 12 | 'OCA\\Theming\\' => 12, |
13 | 13 | ), |
14 | 14 | ); |
15 | 15 | |
16 | - public static $prefixDirsPsr4 = array ( |
|
16 | + public static $prefixDirsPsr4 = array( |
|
17 | 17 | 'OCA\\Theming\\' => |
18 | - array ( |
|
19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
18 | + array( |
|
19 | + 0 => __DIR__.'/..'.'/../lib', |
|
20 | 20 | ), |
21 | 21 | ); |
22 | 22 | |
23 | - public static $classMap = array ( |
|
24 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', |
|
25 | - 'OCA\\Theming\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
26 | - 'OCA\\Theming\\Capabilities' => __DIR__ . '/..' . '/../lib/Capabilities.php', |
|
27 | - 'OCA\\Theming\\Command\\UpdateConfig' => __DIR__ . '/..' . '/../lib/Command/UpdateConfig.php', |
|
28 | - 'OCA\\Theming\\Controller\\IconController' => __DIR__ . '/..' . '/../lib/Controller/IconController.php', |
|
29 | - 'OCA\\Theming\\Controller\\ThemingController' => __DIR__ . '/..' . '/../lib/Controller/ThemingController.php', |
|
30 | - 'OCA\\Theming\\Controller\\UserThemeController' => __DIR__ . '/..' . '/../lib/Controller/UserThemeController.php', |
|
31 | - 'OCA\\Theming\\ITheme' => __DIR__ . '/..' . '/../lib/ITheme.php', |
|
32 | - 'OCA\\Theming\\IconBuilder' => __DIR__ . '/..' . '/../lib/IconBuilder.php', |
|
33 | - 'OCA\\Theming\\ImageManager' => __DIR__ . '/..' . '/../lib/ImageManager.php', |
|
34 | - 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => __DIR__ . '/..' . '/../lib/Jobs/MigrateBackgroundImages.php', |
|
35 | - 'OCA\\Theming\\Listener\\BeforePreferenceListener' => __DIR__ . '/..' . '/../lib/Listener/BeforePreferenceListener.php', |
|
36 | - 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => __DIR__ . '/..' . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
37 | - 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => __DIR__ . '/..' . '/../lib/Migration/InitBackgroundImagesMigration.php', |
|
38 | - 'OCA\\Theming\\Migration\\MigrateAdminConfig' => __DIR__ . '/..' . '/../lib/Migration/MigrateAdminConfig.php', |
|
39 | - 'OCA\\Theming\\Migration\\MigrateUserConfig' => __DIR__ . '/..' . '/../lib/Migration/MigrateUserConfig.php', |
|
40 | - 'OCA\\Theming\\Service\\BackgroundService' => __DIR__ . '/..' . '/../lib/Service/BackgroundService.php', |
|
41 | - 'OCA\\Theming\\Service\\JSDataService' => __DIR__ . '/..' . '/../lib/Service/JSDataService.php', |
|
42 | - 'OCA\\Theming\\Service\\ThemeInjectionService' => __DIR__ . '/..' . '/../lib/Service/ThemeInjectionService.php', |
|
43 | - 'OCA\\Theming\\Service\\ThemesService' => __DIR__ . '/..' . '/../lib/Service/ThemesService.php', |
|
44 | - 'OCA\\Theming\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
45 | - 'OCA\\Theming\\Settings\\AdminSection' => __DIR__ . '/..' . '/../lib/Settings/AdminSection.php', |
|
46 | - 'OCA\\Theming\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
47 | - 'OCA\\Theming\\Settings\\PersonalSection' => __DIR__ . '/..' . '/../lib/Settings/PersonalSection.php', |
|
48 | - 'OCA\\Theming\\Themes\\CommonThemeTrait' => __DIR__ . '/..' . '/../lib/Themes/CommonThemeTrait.php', |
|
49 | - 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => __DIR__ . '/..' . '/../lib/Themes/DarkHighContrastTheme.php', |
|
50 | - 'OCA\\Theming\\Themes\\DarkTheme' => __DIR__ . '/..' . '/../lib/Themes/DarkTheme.php', |
|
51 | - 'OCA\\Theming\\Themes\\DefaultTheme' => __DIR__ . '/..' . '/../lib/Themes/DefaultTheme.php', |
|
52 | - 'OCA\\Theming\\Themes\\DyslexiaFont' => __DIR__ . '/..' . '/../lib/Themes/DyslexiaFont.php', |
|
53 | - 'OCA\\Theming\\Themes\\HighContrastTheme' => __DIR__ . '/..' . '/../lib/Themes/HighContrastTheme.php', |
|
54 | - 'OCA\\Theming\\Themes\\LightTheme' => __DIR__ . '/..' . '/../lib/Themes/LightTheme.php', |
|
55 | - 'OCA\\Theming\\ThemingDefaults' => __DIR__ . '/..' . '/../lib/ThemingDefaults.php', |
|
56 | - 'OCA\\Theming\\Util' => __DIR__ . '/..' . '/../lib/Util.php', |
|
23 | + public static $classMap = array( |
|
24 | + 'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php', |
|
25 | + 'OCA\\Theming\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
26 | + 'OCA\\Theming\\Capabilities' => __DIR__.'/..'.'/../lib/Capabilities.php', |
|
27 | + 'OCA\\Theming\\Command\\UpdateConfig' => __DIR__.'/..'.'/../lib/Command/UpdateConfig.php', |
|
28 | + 'OCA\\Theming\\Controller\\IconController' => __DIR__.'/..'.'/../lib/Controller/IconController.php', |
|
29 | + 'OCA\\Theming\\Controller\\ThemingController' => __DIR__.'/..'.'/../lib/Controller/ThemingController.php', |
|
30 | + 'OCA\\Theming\\Controller\\UserThemeController' => __DIR__.'/..'.'/../lib/Controller/UserThemeController.php', |
|
31 | + 'OCA\\Theming\\ITheme' => __DIR__.'/..'.'/../lib/ITheme.php', |
|
32 | + 'OCA\\Theming\\IconBuilder' => __DIR__.'/..'.'/../lib/IconBuilder.php', |
|
33 | + 'OCA\\Theming\\ImageManager' => __DIR__.'/..'.'/../lib/ImageManager.php', |
|
34 | + 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => __DIR__.'/..'.'/../lib/Jobs/MigrateBackgroundImages.php', |
|
35 | + 'OCA\\Theming\\Listener\\BeforePreferenceListener' => __DIR__.'/..'.'/../lib/Listener/BeforePreferenceListener.php', |
|
36 | + 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => __DIR__.'/..'.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
37 | + 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => __DIR__.'/..'.'/../lib/Migration/InitBackgroundImagesMigration.php', |
|
38 | + 'OCA\\Theming\\Migration\\MigrateAdminConfig' => __DIR__.'/..'.'/../lib/Migration/MigrateAdminConfig.php', |
|
39 | + 'OCA\\Theming\\Migration\\MigrateUserConfig' => __DIR__.'/..'.'/../lib/Migration/MigrateUserConfig.php', |
|
40 | + 'OCA\\Theming\\Service\\BackgroundService' => __DIR__.'/..'.'/../lib/Service/BackgroundService.php', |
|
41 | + 'OCA\\Theming\\Service\\JSDataService' => __DIR__.'/..'.'/../lib/Service/JSDataService.php', |
|
42 | + 'OCA\\Theming\\Service\\ThemeInjectionService' => __DIR__.'/..'.'/../lib/Service/ThemeInjectionService.php', |
|
43 | + 'OCA\\Theming\\Service\\ThemesService' => __DIR__.'/..'.'/../lib/Service/ThemesService.php', |
|
44 | + 'OCA\\Theming\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
45 | + 'OCA\\Theming\\Settings\\AdminSection' => __DIR__.'/..'.'/../lib/Settings/AdminSection.php', |
|
46 | + 'OCA\\Theming\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
47 | + 'OCA\\Theming\\Settings\\PersonalSection' => __DIR__.'/..'.'/../lib/Settings/PersonalSection.php', |
|
48 | + 'OCA\\Theming\\Themes\\CommonThemeTrait' => __DIR__.'/..'.'/../lib/Themes/CommonThemeTrait.php', |
|
49 | + 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => __DIR__.'/..'.'/../lib/Themes/DarkHighContrastTheme.php', |
|
50 | + 'OCA\\Theming\\Themes\\DarkTheme' => __DIR__.'/..'.'/../lib/Themes/DarkTheme.php', |
|
51 | + 'OCA\\Theming\\Themes\\DefaultTheme' => __DIR__.'/..'.'/../lib/Themes/DefaultTheme.php', |
|
52 | + 'OCA\\Theming\\Themes\\DyslexiaFont' => __DIR__.'/..'.'/../lib/Themes/DyslexiaFont.php', |
|
53 | + 'OCA\\Theming\\Themes\\HighContrastTheme' => __DIR__.'/..'.'/../lib/Themes/HighContrastTheme.php', |
|
54 | + 'OCA\\Theming\\Themes\\LightTheme' => __DIR__.'/..'.'/../lib/Themes/LightTheme.php', |
|
55 | + 'OCA\\Theming\\ThemingDefaults' => __DIR__.'/..'.'/../lib/ThemingDefaults.php', |
|
56 | + 'OCA\\Theming\\Util' => __DIR__.'/..'.'/../lib/Util.php', |
|
57 | 57 | ); |
58 | 58 | |
59 | 59 | public static function getInitializer(ClassLoader $loader) |
60 | 60 | { |
61 | - return \Closure::bind(function () use ($loader) { |
|
61 | + return \Closure::bind(function() use ($loader) { |
|
62 | 62 | $loader->prefixLengthsPsr4 = ComposerStaticInitTheming::$prefixLengthsPsr4; |
63 | 63 | $loader->prefixDirsPsr4 = ComposerStaticInitTheming::$prefixDirsPsr4; |
64 | 64 | $loader->classMap = ComposerStaticInitTheming::$classMap; |
@@ -6,37 +6,37 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', |
|
10 | - 'OCA\\Theming\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
11 | - 'OCA\\Theming\\Capabilities' => $baseDir . '/../lib/Capabilities.php', |
|
12 | - 'OCA\\Theming\\Command\\UpdateConfig' => $baseDir . '/../lib/Command/UpdateConfig.php', |
|
13 | - 'OCA\\Theming\\Controller\\IconController' => $baseDir . '/../lib/Controller/IconController.php', |
|
14 | - 'OCA\\Theming\\Controller\\ThemingController' => $baseDir . '/../lib/Controller/ThemingController.php', |
|
15 | - 'OCA\\Theming\\Controller\\UserThemeController' => $baseDir . '/../lib/Controller/UserThemeController.php', |
|
16 | - 'OCA\\Theming\\ITheme' => $baseDir . '/../lib/ITheme.php', |
|
17 | - 'OCA\\Theming\\IconBuilder' => $baseDir . '/../lib/IconBuilder.php', |
|
18 | - 'OCA\\Theming\\ImageManager' => $baseDir . '/../lib/ImageManager.php', |
|
19 | - 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => $baseDir . '/../lib/Jobs/MigrateBackgroundImages.php', |
|
20 | - 'OCA\\Theming\\Listener\\BeforePreferenceListener' => $baseDir . '/../lib/Listener/BeforePreferenceListener.php', |
|
21 | - 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => $baseDir . '/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
22 | - 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => $baseDir . '/../lib/Migration/InitBackgroundImagesMigration.php', |
|
23 | - 'OCA\\Theming\\Migration\\MigrateAdminConfig' => $baseDir . '/../lib/Migration/MigrateAdminConfig.php', |
|
24 | - 'OCA\\Theming\\Migration\\MigrateUserConfig' => $baseDir . '/../lib/Migration/MigrateUserConfig.php', |
|
25 | - 'OCA\\Theming\\Service\\BackgroundService' => $baseDir . '/../lib/Service/BackgroundService.php', |
|
26 | - 'OCA\\Theming\\Service\\JSDataService' => $baseDir . '/../lib/Service/JSDataService.php', |
|
27 | - 'OCA\\Theming\\Service\\ThemeInjectionService' => $baseDir . '/../lib/Service/ThemeInjectionService.php', |
|
28 | - 'OCA\\Theming\\Service\\ThemesService' => $baseDir . '/../lib/Service/ThemesService.php', |
|
29 | - 'OCA\\Theming\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
30 | - 'OCA\\Theming\\Settings\\AdminSection' => $baseDir . '/../lib/Settings/AdminSection.php', |
|
31 | - 'OCA\\Theming\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php', |
|
32 | - 'OCA\\Theming\\Settings\\PersonalSection' => $baseDir . '/../lib/Settings/PersonalSection.php', |
|
33 | - 'OCA\\Theming\\Themes\\CommonThemeTrait' => $baseDir . '/../lib/Themes/CommonThemeTrait.php', |
|
34 | - 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => $baseDir . '/../lib/Themes/DarkHighContrastTheme.php', |
|
35 | - 'OCA\\Theming\\Themes\\DarkTheme' => $baseDir . '/../lib/Themes/DarkTheme.php', |
|
36 | - 'OCA\\Theming\\Themes\\DefaultTheme' => $baseDir . '/../lib/Themes/DefaultTheme.php', |
|
37 | - 'OCA\\Theming\\Themes\\DyslexiaFont' => $baseDir . '/../lib/Themes/DyslexiaFont.php', |
|
38 | - 'OCA\\Theming\\Themes\\HighContrastTheme' => $baseDir . '/../lib/Themes/HighContrastTheme.php', |
|
39 | - 'OCA\\Theming\\Themes\\LightTheme' => $baseDir . '/../lib/Themes/LightTheme.php', |
|
40 | - 'OCA\\Theming\\ThemingDefaults' => $baseDir . '/../lib/ThemingDefaults.php', |
|
41 | - 'OCA\\Theming\\Util' => $baseDir . '/../lib/Util.php', |
|
9 | + 'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php', |
|
10 | + 'OCA\\Theming\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
11 | + 'OCA\\Theming\\Capabilities' => $baseDir.'/../lib/Capabilities.php', |
|
12 | + 'OCA\\Theming\\Command\\UpdateConfig' => $baseDir.'/../lib/Command/UpdateConfig.php', |
|
13 | + 'OCA\\Theming\\Controller\\IconController' => $baseDir.'/../lib/Controller/IconController.php', |
|
14 | + 'OCA\\Theming\\Controller\\ThemingController' => $baseDir.'/../lib/Controller/ThemingController.php', |
|
15 | + 'OCA\\Theming\\Controller\\UserThemeController' => $baseDir.'/../lib/Controller/UserThemeController.php', |
|
16 | + 'OCA\\Theming\\ITheme' => $baseDir.'/../lib/ITheme.php', |
|
17 | + 'OCA\\Theming\\IconBuilder' => $baseDir.'/../lib/IconBuilder.php', |
|
18 | + 'OCA\\Theming\\ImageManager' => $baseDir.'/../lib/ImageManager.php', |
|
19 | + 'OCA\\Theming\\Jobs\\MigrateBackgroundImages' => $baseDir.'/../lib/Jobs/MigrateBackgroundImages.php', |
|
20 | + 'OCA\\Theming\\Listener\\BeforePreferenceListener' => $baseDir.'/../lib/Listener/BeforePreferenceListener.php', |
|
21 | + 'OCA\\Theming\\Listener\\BeforeTemplateRenderedListener' => $baseDir.'/../lib/Listener/BeforeTemplateRenderedListener.php', |
|
22 | + 'OCA\\Theming\\Migration\\InitBackgroundImagesMigration' => $baseDir.'/../lib/Migration/InitBackgroundImagesMigration.php', |
|
23 | + 'OCA\\Theming\\Migration\\MigrateAdminConfig' => $baseDir.'/../lib/Migration/MigrateAdminConfig.php', |
|
24 | + 'OCA\\Theming\\Migration\\MigrateUserConfig' => $baseDir.'/../lib/Migration/MigrateUserConfig.php', |
|
25 | + 'OCA\\Theming\\Service\\BackgroundService' => $baseDir.'/../lib/Service/BackgroundService.php', |
|
26 | + 'OCA\\Theming\\Service\\JSDataService' => $baseDir.'/../lib/Service/JSDataService.php', |
|
27 | + 'OCA\\Theming\\Service\\ThemeInjectionService' => $baseDir.'/../lib/Service/ThemeInjectionService.php', |
|
28 | + 'OCA\\Theming\\Service\\ThemesService' => $baseDir.'/../lib/Service/ThemesService.php', |
|
29 | + 'OCA\\Theming\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
30 | + 'OCA\\Theming\\Settings\\AdminSection' => $baseDir.'/../lib/Settings/AdminSection.php', |
|
31 | + 'OCA\\Theming\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php', |
|
32 | + 'OCA\\Theming\\Settings\\PersonalSection' => $baseDir.'/../lib/Settings/PersonalSection.php', |
|
33 | + 'OCA\\Theming\\Themes\\CommonThemeTrait' => $baseDir.'/../lib/Themes/CommonThemeTrait.php', |
|
34 | + 'OCA\\Theming\\Themes\\DarkHighContrastTheme' => $baseDir.'/../lib/Themes/DarkHighContrastTheme.php', |
|
35 | + 'OCA\\Theming\\Themes\\DarkTheme' => $baseDir.'/../lib/Themes/DarkTheme.php', |
|
36 | + 'OCA\\Theming\\Themes\\DefaultTheme' => $baseDir.'/../lib/Themes/DefaultTheme.php', |
|
37 | + 'OCA\\Theming\\Themes\\DyslexiaFont' => $baseDir.'/../lib/Themes/DyslexiaFont.php', |
|
38 | + 'OCA\\Theming\\Themes\\HighContrastTheme' => $baseDir.'/../lib/Themes/HighContrastTheme.php', |
|
39 | + 'OCA\\Theming\\Themes\\LightTheme' => $baseDir.'/../lib/Themes/LightTheme.php', |
|
40 | + 'OCA\\Theming\\ThemingDefaults' => $baseDir.'/../lib/ThemingDefaults.php', |
|
41 | + 'OCA\\Theming\\Util' => $baseDir.'/../lib/Util.php', |
|
42 | 42 | ); |