@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } catch (QueryException $e) { |
| 67 | 67 | $this->logger->logException($e, [ |
| 68 | 68 | 'level' => ILogger::ERROR, |
| 69 | - 'message' => "Could not load event listener service " . $this->class, |
|
| 69 | + 'message' => "Could not load event listener service ".$this->class, |
|
| 70 | 70 | ]); |
| 71 | 71 | return; |
| 72 | 72 | } |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | // To find out if we are running from CLI or not |
| 183 | 183 | $this->registerParameter('isCLI', \OC::$CLI); |
| 184 | 184 | |
| 185 | - $this->registerService(\OCP\IServerContainer::class, function (IServerContainer $c) { |
|
| 185 | + $this->registerService(\OCP\IServerContainer::class, function(IServerContainer $c) { |
|
| 186 | 186 | return $c; |
| 187 | 187 | }); |
| 188 | 188 | |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | $this->registerAlias(IActionFactory::class, ActionFactory::class); |
| 202 | 202 | |
| 203 | 203 | |
| 204 | - $this->registerService(\OCP\IPreview::class, function (Server $c) { |
|
| 204 | + $this->registerService(\OCP\IPreview::class, function(Server $c) { |
|
| 205 | 205 | return new PreviewManager( |
| 206 | 206 | $c->getConfig(), |
| 207 | 207 | $c->getRootFolder(), |
@@ -212,13 +212,13 @@ discard block |
||
| 212 | 212 | }); |
| 213 | 213 | $this->registerAlias('PreviewManager', \OCP\IPreview::class); |
| 214 | 214 | |
| 215 | - $this->registerService(\OC\Preview\Watcher::class, function (Server $c) { |
|
| 215 | + $this->registerService(\OC\Preview\Watcher::class, function(Server $c) { |
|
| 216 | 216 | return new \OC\Preview\Watcher( |
| 217 | 217 | $c->getAppDataDir('preview') |
| 218 | 218 | ); |
| 219 | 219 | }); |
| 220 | 220 | |
| 221 | - $this->registerService(\OCP\Encryption\IManager::class, function (Server $c) { |
|
| 221 | + $this->registerService(\OCP\Encryption\IManager::class, function(Server $c) { |
|
| 222 | 222 | $view = new View(); |
| 223 | 223 | $util = new Encryption\Util( |
| 224 | 224 | $view, |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | }); |
| 238 | 238 | $this->registerAlias('EncryptionManager', \OCP\Encryption\IManager::class); |
| 239 | 239 | |
| 240 | - $this->registerService('EncryptionFileHelper', function (Server $c) { |
|
| 240 | + $this->registerService('EncryptionFileHelper', function(Server $c) { |
|
| 241 | 241 | $util = new Encryption\Util( |
| 242 | 242 | new View(), |
| 243 | 243 | $c->getUserManager(), |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | ); |
| 252 | 252 | }); |
| 253 | 253 | |
| 254 | - $this->registerService('EncryptionKeyStorage', function (Server $c) { |
|
| 254 | + $this->registerService('EncryptionKeyStorage', function(Server $c) { |
|
| 255 | 255 | $view = new View(); |
| 256 | 256 | $util = new Encryption\Util( |
| 257 | 257 | $view, |
@@ -262,30 +262,30 @@ discard block |
||
| 262 | 262 | |
| 263 | 263 | return new Encryption\Keys\Storage($view, $util); |
| 264 | 264 | }); |
| 265 | - $this->registerService('TagMapper', function (Server $c) { |
|
| 265 | + $this->registerService('TagMapper', function(Server $c) { |
|
| 266 | 266 | return new TagMapper($c->getDatabaseConnection()); |
| 267 | 267 | }); |
| 268 | 268 | |
| 269 | - $this->registerService(\OCP\ITagManager::class, function (Server $c) { |
|
| 269 | + $this->registerService(\OCP\ITagManager::class, function(Server $c) { |
|
| 270 | 270 | $tagMapper = $c->query('TagMapper'); |
| 271 | 271 | return new TagManager($tagMapper, $c->getUserSession()); |
| 272 | 272 | }); |
| 273 | 273 | $this->registerAlias('TagManager', \OCP\ITagManager::class); |
| 274 | 274 | |
| 275 | - $this->registerService('SystemTagManagerFactory', function (Server $c) { |
|
| 275 | + $this->registerService('SystemTagManagerFactory', function(Server $c) { |
|
| 276 | 276 | $config = $c->getConfig(); |
| 277 | 277 | $factoryClass = $config->getSystemValue('systemtags.managerFactory', SystemTagManagerFactory::class); |
| 278 | 278 | return new $factoryClass($this); |
| 279 | 279 | }); |
| 280 | - $this->registerService(\OCP\SystemTag\ISystemTagManager::class, function (Server $c) { |
|
| 280 | + $this->registerService(\OCP\SystemTag\ISystemTagManager::class, function(Server $c) { |
|
| 281 | 281 | return $c->query('SystemTagManagerFactory')->getManager(); |
| 282 | 282 | }); |
| 283 | 283 | $this->registerAlias('SystemTagManager', \OCP\SystemTag\ISystemTagManager::class); |
| 284 | 284 | |
| 285 | - $this->registerService(\OCP\SystemTag\ISystemTagObjectMapper::class, function (Server $c) { |
|
| 285 | + $this->registerService(\OCP\SystemTag\ISystemTagObjectMapper::class, function(Server $c) { |
|
| 286 | 286 | return $c->query('SystemTagManagerFactory')->getObjectMapper(); |
| 287 | 287 | }); |
| 288 | - $this->registerService('RootFolder', function (Server $c) { |
|
| 288 | + $this->registerService('RootFolder', function(Server $c) { |
|
| 289 | 289 | $manager = \OC\Files\Filesystem::getMountManager(null); |
| 290 | 290 | $view = new View(); |
| 291 | 291 | $root = new Root( |
@@ -306,37 +306,37 @@ discard block |
||
| 306 | 306 | }); |
| 307 | 307 | $this->registerAlias('SystemTagObjectMapper', \OCP\SystemTag\ISystemTagObjectMapper::class); |
| 308 | 308 | |
| 309 | - $this->registerService(\OCP\Files\IRootFolder::class, function (Server $c) { |
|
| 310 | - return new LazyRoot(function () use ($c) { |
|
| 309 | + $this->registerService(\OCP\Files\IRootFolder::class, function(Server $c) { |
|
| 310 | + return new LazyRoot(function() use ($c) { |
|
| 311 | 311 | return $c->query('RootFolder'); |
| 312 | 312 | }); |
| 313 | 313 | }); |
| 314 | 314 | $this->registerAlias('LazyRootFolder', \OCP\Files\IRootFolder::class); |
| 315 | 315 | |
| 316 | - $this->registerService(\OC\User\Manager::class, function (Server $c) { |
|
| 316 | + $this->registerService(\OC\User\Manager::class, function(Server $c) { |
|
| 317 | 317 | return new \OC\User\Manager($c->getConfig(), $c->getEventDispatcher()); |
| 318 | 318 | }); |
| 319 | 319 | $this->registerAlias('UserManager', \OC\User\Manager::class); |
| 320 | 320 | $this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class); |
| 321 | 321 | |
| 322 | - $this->registerService(\OCP\IGroupManager::class, function (Server $c) { |
|
| 322 | + $this->registerService(\OCP\IGroupManager::class, function(Server $c) { |
|
| 323 | 323 | $groupManager = new \OC\Group\Manager($this->getUserManager(), $c->getEventDispatcher(), $this->getLogger()); |
| 324 | - $groupManager->listen('\OC\Group', 'preCreate', function ($gid) { |
|
| 324 | + $groupManager->listen('\OC\Group', 'preCreate', function($gid) { |
|
| 325 | 325 | \OC_Hook::emit('OC_Group', 'pre_createGroup', array('run' => true, 'gid' => $gid)); |
| 326 | 326 | }); |
| 327 | - $groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $gid) { |
|
| 327 | + $groupManager->listen('\OC\Group', 'postCreate', function(\OC\Group\Group $gid) { |
|
| 328 | 328 | \OC_Hook::emit('OC_User', 'post_createGroup', array('gid' => $gid->getGID())); |
| 329 | 329 | }); |
| 330 | - $groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) { |
|
| 330 | + $groupManager->listen('\OC\Group', 'preDelete', function(\OC\Group\Group $group) { |
|
| 331 | 331 | \OC_Hook::emit('OC_Group', 'pre_deleteGroup', array('run' => true, 'gid' => $group->getGID())); |
| 332 | 332 | }); |
| 333 | - $groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) { |
|
| 333 | + $groupManager->listen('\OC\Group', 'postDelete', function(\OC\Group\Group $group) { |
|
| 334 | 334 | \OC_Hook::emit('OC_User', 'post_deleteGroup', array('gid' => $group->getGID())); |
| 335 | 335 | }); |
| 336 | - $groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
| 336 | + $groupManager->listen('\OC\Group', 'preAddUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
| 337 | 337 | \OC_Hook::emit('OC_Group', 'pre_addToGroup', array('run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID())); |
| 338 | 338 | }); |
| 339 | - $groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { |
|
| 339 | + $groupManager->listen('\OC\Group', 'postAddUser', function(\OC\Group\Group $group, \OC\User\User $user) { |
|
| 340 | 340 | \OC_Hook::emit('OC_Group', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID())); |
| 341 | 341 | //Minimal fix to keep it backward compatible TODO: clean up all the GroupManager hooks |
| 342 | 342 | \OC_Hook::emit('OC_User', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID())); |
@@ -345,7 +345,7 @@ discard block |
||
| 345 | 345 | }); |
| 346 | 346 | $this->registerAlias('GroupManager', \OCP\IGroupManager::class); |
| 347 | 347 | |
| 348 | - $this->registerService(Store::class, function (Server $c) { |
|
| 348 | + $this->registerService(Store::class, function(Server $c) { |
|
| 349 | 349 | $session = $c->getSession(); |
| 350 | 350 | if (\OC::$server->getSystemConfig()->getValue('installed', false)) { |
| 351 | 351 | $tokenProvider = $c->query(IProvider::class); |
@@ -356,13 +356,13 @@ discard block |
||
| 356 | 356 | return new Store($session, $logger, $tokenProvider); |
| 357 | 357 | }); |
| 358 | 358 | $this->registerAlias(IStore::class, Store::class); |
| 359 | - $this->registerService(Authentication\Token\DefaultTokenMapper::class, function (Server $c) { |
|
| 359 | + $this->registerService(Authentication\Token\DefaultTokenMapper::class, function(Server $c) { |
|
| 360 | 360 | $dbConnection = $c->getDatabaseConnection(); |
| 361 | 361 | return new Authentication\Token\DefaultTokenMapper($dbConnection); |
| 362 | 362 | }); |
| 363 | 363 | $this->registerAlias(IProvider::class, Authentication\Token\Manager::class); |
| 364 | 364 | |
| 365 | - $this->registerService(\OC\User\Session::class, function (Server $c) { |
|
| 365 | + $this->registerService(\OC\User\Session::class, function(Server $c) { |
|
| 366 | 366 | $manager = $c->getUserManager(); |
| 367 | 367 | $session = new \OC\Session\Memory(''); |
| 368 | 368 | $timeFactory = new TimeFactory(); |
@@ -386,45 +386,45 @@ discard block |
||
| 386 | 386 | $c->getLockdownManager(), |
| 387 | 387 | $c->getLogger() |
| 388 | 388 | ); |
| 389 | - $userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) { |
|
| 389 | + $userSession->listen('\OC\User', 'preCreateUser', function($uid, $password) { |
|
| 390 | 390 | \OC_Hook::emit('OC_User', 'pre_createUser', array('run' => true, 'uid' => $uid, 'password' => $password)); |
| 391 | 391 | }); |
| 392 | - $userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) { |
|
| 392 | + $userSession->listen('\OC\User', 'postCreateUser', function($user, $password) { |
|
| 393 | 393 | /** @var $user \OC\User\User */ |
| 394 | 394 | \OC_Hook::emit('OC_User', 'post_createUser', array('uid' => $user->getUID(), 'password' => $password)); |
| 395 | 395 | }); |
| 396 | - $userSession->listen('\OC\User', 'preDelete', function ($user) use ($dispatcher) { |
|
| 396 | + $userSession->listen('\OC\User', 'preDelete', function($user) use ($dispatcher) { |
|
| 397 | 397 | /** @var $user \OC\User\User */ |
| 398 | 398 | \OC_Hook::emit('OC_User', 'pre_deleteUser', array('run' => true, 'uid' => $user->getUID())); |
| 399 | 399 | $dispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user)); |
| 400 | 400 | }); |
| 401 | - $userSession->listen('\OC\User', 'postDelete', function ($user) { |
|
| 401 | + $userSession->listen('\OC\User', 'postDelete', function($user) { |
|
| 402 | 402 | /** @var $user \OC\User\User */ |
| 403 | 403 | \OC_Hook::emit('OC_User', 'post_deleteUser', array('uid' => $user->getUID())); |
| 404 | 404 | }); |
| 405 | - $userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) { |
|
| 405 | + $userSession->listen('\OC\User', 'preSetPassword', function($user, $password, $recoveryPassword) { |
|
| 406 | 406 | /** @var $user \OC\User\User */ |
| 407 | 407 | \OC_Hook::emit('OC_User', 'pre_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword)); |
| 408 | 408 | }); |
| 409 | - $userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) { |
|
| 409 | + $userSession->listen('\OC\User', 'postSetPassword', function($user, $password, $recoveryPassword) { |
|
| 410 | 410 | /** @var $user \OC\User\User */ |
| 411 | 411 | \OC_Hook::emit('OC_User', 'post_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword)); |
| 412 | 412 | }); |
| 413 | - $userSession->listen('\OC\User', 'preLogin', function ($uid, $password) { |
|
| 413 | + $userSession->listen('\OC\User', 'preLogin', function($uid, $password) { |
|
| 414 | 414 | \OC_Hook::emit('OC_User', 'pre_login', array('run' => true, 'uid' => $uid, 'password' => $password)); |
| 415 | 415 | }); |
| 416 | - $userSession->listen('\OC\User', 'postLogin', function ($user, $password, $isTokenLogin) { |
|
| 416 | + $userSession->listen('\OC\User', 'postLogin', function($user, $password, $isTokenLogin) { |
|
| 417 | 417 | /** @var $user \OC\User\User */ |
| 418 | 418 | \OC_Hook::emit('OC_User', 'post_login', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'isTokenLogin' => $isTokenLogin)); |
| 419 | 419 | }); |
| 420 | - $userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) { |
|
| 420 | + $userSession->listen('\OC\User', 'postRememberedLogin', function($user, $password) { |
|
| 421 | 421 | /** @var $user \OC\User\User */ |
| 422 | 422 | \OC_Hook::emit('OC_User', 'post_login', array('run' => true, 'uid' => $user->getUID(), 'password' => $password)); |
| 423 | 423 | }); |
| 424 | - $userSession->listen('\OC\User', 'logout', function () { |
|
| 424 | + $userSession->listen('\OC\User', 'logout', function() { |
|
| 425 | 425 | \OC_Hook::emit('OC_User', 'logout', array()); |
| 426 | 426 | }); |
| 427 | - $userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) { |
|
| 427 | + $userSession->listen('\OC\User', 'changeUser', function($user, $feature, $value, $oldValue) { |
|
| 428 | 428 | /** @var $user \OC\User\User */ |
| 429 | 429 | \OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue)); |
| 430 | 430 | }); |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | $this->registerAlias(\OCP\INavigationManager::class, \OC\NavigationManager::class); |
| 439 | 439 | $this->registerAlias('NavigationManager', \OCP\INavigationManager::class); |
| 440 | 440 | |
| 441 | - $this->registerService(\OC\AllConfig::class, function (Server $c) { |
|
| 441 | + $this->registerService(\OC\AllConfig::class, function(Server $c) { |
|
| 442 | 442 | return new \OC\AllConfig( |
| 443 | 443 | $c->getSystemConfig() |
| 444 | 444 | ); |
@@ -446,17 +446,17 @@ discard block |
||
| 446 | 446 | $this->registerAlias('AllConfig', \OC\AllConfig::class); |
| 447 | 447 | $this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class); |
| 448 | 448 | |
| 449 | - $this->registerService('SystemConfig', function ($c) use ($config) { |
|
| 449 | + $this->registerService('SystemConfig', function($c) use ($config) { |
|
| 450 | 450 | return new \OC\SystemConfig($config); |
| 451 | 451 | }); |
| 452 | 452 | |
| 453 | - $this->registerService(\OC\AppConfig::class, function (Server $c) { |
|
| 453 | + $this->registerService(\OC\AppConfig::class, function(Server $c) { |
|
| 454 | 454 | return new \OC\AppConfig($c->getDatabaseConnection()); |
| 455 | 455 | }); |
| 456 | 456 | $this->registerAlias('AppConfig', \OC\AppConfig::class); |
| 457 | 457 | $this->registerAlias(\OCP\IAppConfig::class, \OC\AppConfig::class); |
| 458 | 458 | |
| 459 | - $this->registerService(\OCP\L10N\IFactory::class, function (Server $c) { |
|
| 459 | + $this->registerService(\OCP\L10N\IFactory::class, function(Server $c) { |
|
| 460 | 460 | return new \OC\L10N\Factory( |
| 461 | 461 | $c->getConfig(), |
| 462 | 462 | $c->getRequest(), |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | }); |
| 467 | 467 | $this->registerAlias('L10NFactory', \OCP\L10N\IFactory::class); |
| 468 | 468 | |
| 469 | - $this->registerService(\OCP\IURLGenerator::class, function (Server $c) { |
|
| 469 | + $this->registerService(\OCP\IURLGenerator::class, function(Server $c) { |
|
| 470 | 470 | $config = $c->getConfig(); |
| 471 | 471 | $cacheFactory = $c->getMemCacheFactory(); |
| 472 | 472 | $request = $c->getRequest(); |
@@ -481,12 +481,12 @@ discard block |
||
| 481 | 481 | $this->registerAlias('AppFetcher', AppFetcher::class); |
| 482 | 482 | $this->registerAlias('CategoryFetcher', CategoryFetcher::class); |
| 483 | 483 | |
| 484 | - $this->registerService(\OCP\ICache::class, function ($c) { |
|
| 484 | + $this->registerService(\OCP\ICache::class, function($c) { |
|
| 485 | 485 | return new Cache\File(); |
| 486 | 486 | }); |
| 487 | 487 | $this->registerAlias('UserCache', \OCP\ICache::class); |
| 488 | 488 | |
| 489 | - $this->registerService(Factory::class, function (Server $c) { |
|
| 489 | + $this->registerService(Factory::class, function(Server $c) { |
|
| 490 | 490 | |
| 491 | 491 | $arrayCacheFactory = new \OC\Memcache\Factory('', $c->getLogger(), |
| 492 | 492 | ArrayCache::class, |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | $version = implode(',', $v); |
| 502 | 502 | $instanceId = \OC_Util::getInstanceId(); |
| 503 | 503 | $path = \OC::$SERVERROOT; |
| 504 | - $prefix = md5($instanceId . '-' . $version . '-' . $path); |
|
| 504 | + $prefix = md5($instanceId.'-'.$version.'-'.$path); |
|
| 505 | 505 | return new \OC\Memcache\Factory($prefix, $c->getLogger(), |
| 506 | 506 | $config->getSystemValue('memcache.local', null), |
| 507 | 507 | $config->getSystemValue('memcache.distributed', null), |
@@ -514,12 +514,12 @@ discard block |
||
| 514 | 514 | $this->registerAlias('MemCacheFactory', Factory::class); |
| 515 | 515 | $this->registerAlias(ICacheFactory::class, Factory::class); |
| 516 | 516 | |
| 517 | - $this->registerService('RedisFactory', function (Server $c) { |
|
| 517 | + $this->registerService('RedisFactory', function(Server $c) { |
|
| 518 | 518 | $systemConfig = $c->getSystemConfig(); |
| 519 | 519 | return new RedisFactory($systemConfig); |
| 520 | 520 | }); |
| 521 | 521 | |
| 522 | - $this->registerService(\OCP\Activity\IManager::class, function (Server $c) { |
|
| 522 | + $this->registerService(\OCP\Activity\IManager::class, function(Server $c) { |
|
| 523 | 523 | return new \OC\Activity\Manager( |
| 524 | 524 | $c->getRequest(), |
| 525 | 525 | $c->getUserSession(), |
@@ -529,7 +529,7 @@ discard block |
||
| 529 | 529 | }); |
| 530 | 530 | $this->registerAlias('ActivityManager', \OCP\Activity\IManager::class); |
| 531 | 531 | |
| 532 | - $this->registerService(\OCP\Activity\IEventMerger::class, function (Server $c) { |
|
| 532 | + $this->registerService(\OCP\Activity\IEventMerger::class, function(Server $c) { |
|
| 533 | 533 | return new \OC\Activity\EventMerger( |
| 534 | 534 | $c->getL10N('lib') |
| 535 | 535 | ); |
@@ -551,7 +551,7 @@ discard block |
||
| 551 | 551 | $this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class); |
| 552 | 552 | $this->registerAlias(\OCP\Support\Subscription\IRegistry::class, \OC\Support\Subscription\Registry::class); |
| 553 | 553 | |
| 554 | - $this->registerService(\OC\Log::class, function (Server $c) { |
|
| 554 | + $this->registerService(\OC\Log::class, function(Server $c) { |
|
| 555 | 555 | $logType = $c->query('AllConfig')->getSystemValue('log_type', 'file'); |
| 556 | 556 | $factory = new LogFactory($c, $this->getSystemConfig()); |
| 557 | 557 | $logger = $factory->get($logType); |
@@ -562,11 +562,11 @@ discard block |
||
| 562 | 562 | $this->registerAlias(\OCP\ILogger::class, \OC\Log::class); |
| 563 | 563 | $this->registerAlias('Logger', \OC\Log::class); |
| 564 | 564 | |
| 565 | - $this->registerService(ILogFactory::class, function (Server $c) { |
|
| 565 | + $this->registerService(ILogFactory::class, function(Server $c) { |
|
| 566 | 566 | return new LogFactory($c, $this->getSystemConfig()); |
| 567 | 567 | }); |
| 568 | 568 | |
| 569 | - $this->registerService(\OCP\BackgroundJob\IJobList::class, function (Server $c) { |
|
| 569 | + $this->registerService(\OCP\BackgroundJob\IJobList::class, function(Server $c) { |
|
| 570 | 570 | $config = $c->getConfig(); |
| 571 | 571 | return new \OC\BackgroundJob\JobList( |
| 572 | 572 | $c->getDatabaseConnection(), |
@@ -576,7 +576,7 @@ discard block |
||
| 576 | 576 | }); |
| 577 | 577 | $this->registerAlias('JobList', \OCP\BackgroundJob\IJobList::class); |
| 578 | 578 | |
| 579 | - $this->registerService(\OCP\Route\IRouter::class, function (Server $c) { |
|
| 579 | + $this->registerService(\OCP\Route\IRouter::class, function(Server $c) { |
|
| 580 | 580 | $cacheFactory = $c->getMemCacheFactory(); |
| 581 | 581 | $logger = $c->getLogger(); |
| 582 | 582 | if ($cacheFactory->isLocalCacheAvailable()) { |
@@ -588,12 +588,12 @@ discard block |
||
| 588 | 588 | }); |
| 589 | 589 | $this->registerAlias('Router', \OCP\Route\IRouter::class); |
| 590 | 590 | |
| 591 | - $this->registerService(\OCP\ISearch::class, function ($c) { |
|
| 591 | + $this->registerService(\OCP\ISearch::class, function($c) { |
|
| 592 | 592 | return new Search(); |
| 593 | 593 | }); |
| 594 | 594 | $this->registerAlias('Search', \OCP\ISearch::class); |
| 595 | 595 | |
| 596 | - $this->registerService(\OC\Security\RateLimiting\Limiter::class, function (Server $c) { |
|
| 596 | + $this->registerService(\OC\Security\RateLimiting\Limiter::class, function(Server $c) { |
|
| 597 | 597 | return new \OC\Security\RateLimiting\Limiter( |
| 598 | 598 | $this->getUserSession(), |
| 599 | 599 | $this->getRequest(), |
@@ -601,34 +601,34 @@ discard block |
||
| 601 | 601 | $c->query(\OC\Security\RateLimiting\Backend\IBackend::class) |
| 602 | 602 | ); |
| 603 | 603 | }); |
| 604 | - $this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) { |
|
| 604 | + $this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function($c) { |
|
| 605 | 605 | return new \OC\Security\RateLimiting\Backend\MemoryCache( |
| 606 | 606 | $this->getMemCacheFactory(), |
| 607 | 607 | new \OC\AppFramework\Utility\TimeFactory() |
| 608 | 608 | ); |
| 609 | 609 | }); |
| 610 | 610 | |
| 611 | - $this->registerService(\OCP\Security\ISecureRandom::class, function ($c) { |
|
| 611 | + $this->registerService(\OCP\Security\ISecureRandom::class, function($c) { |
|
| 612 | 612 | return new SecureRandom(); |
| 613 | 613 | }); |
| 614 | 614 | $this->registerAlias('SecureRandom', \OCP\Security\ISecureRandom::class); |
| 615 | 615 | |
| 616 | - $this->registerService(\OCP\Security\ICrypto::class, function (Server $c) { |
|
| 616 | + $this->registerService(\OCP\Security\ICrypto::class, function(Server $c) { |
|
| 617 | 617 | return new Crypto($c->getConfig(), $c->getSecureRandom()); |
| 618 | 618 | }); |
| 619 | 619 | $this->registerAlias('Crypto', \OCP\Security\ICrypto::class); |
| 620 | 620 | |
| 621 | - $this->registerService(\OCP\Security\IHasher::class, function (Server $c) { |
|
| 621 | + $this->registerService(\OCP\Security\IHasher::class, function(Server $c) { |
|
| 622 | 622 | return new Hasher($c->getConfig()); |
| 623 | 623 | }); |
| 624 | 624 | $this->registerAlias('Hasher', \OCP\Security\IHasher::class); |
| 625 | 625 | |
| 626 | - $this->registerService(\OCP\Security\ICredentialsManager::class, function (Server $c) { |
|
| 626 | + $this->registerService(\OCP\Security\ICredentialsManager::class, function(Server $c) { |
|
| 627 | 627 | return new CredentialsManager($c->getCrypto(), $c->getDatabaseConnection()); |
| 628 | 628 | }); |
| 629 | 629 | $this->registerAlias('CredentialsManager', \OCP\Security\ICredentialsManager::class); |
| 630 | 630 | |
| 631 | - $this->registerService(IDBConnection::class, function (Server $c) { |
|
| 631 | + $this->registerService(IDBConnection::class, function(Server $c) { |
|
| 632 | 632 | $systemConfig = $c->getSystemConfig(); |
| 633 | 633 | $factory = new \OC\DB\ConnectionFactory($systemConfig); |
| 634 | 634 | $type = $systemConfig->getValue('dbtype', 'sqlite'); |
@@ -643,7 +643,7 @@ discard block |
||
| 643 | 643 | $this->registerAlias('DatabaseConnection', IDBConnection::class); |
| 644 | 644 | |
| 645 | 645 | |
| 646 | - $this->registerService(\OCP\Http\Client\IClientService::class, function (Server $c) { |
|
| 646 | + $this->registerService(\OCP\Http\Client\IClientService::class, function(Server $c) { |
|
| 647 | 647 | $user = \OC_User::getUser(); |
| 648 | 648 | $uid = $user ? $user : null; |
| 649 | 649 | return new ClientService( |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | ); |
| 659 | 659 | }); |
| 660 | 660 | $this->registerAlias('HttpClientService', \OCP\Http\Client\IClientService::class); |
| 661 | - $this->registerService(\OCP\Diagnostics\IEventLogger::class, function (Server $c) { |
|
| 661 | + $this->registerService(\OCP\Diagnostics\IEventLogger::class, function(Server $c) { |
|
| 662 | 662 | $eventLogger = new EventLogger(); |
| 663 | 663 | if ($c->getSystemConfig()->getValue('debug', false)) { |
| 664 | 664 | // In debug mode, module is being activated by default |
@@ -668,7 +668,7 @@ discard block |
||
| 668 | 668 | }); |
| 669 | 669 | $this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class); |
| 670 | 670 | |
| 671 | - $this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) { |
|
| 671 | + $this->registerService(\OCP\Diagnostics\IQueryLogger::class, function(Server $c) { |
|
| 672 | 672 | $queryLogger = new QueryLogger(); |
| 673 | 673 | if ($c->getSystemConfig()->getValue('debug', false)) { |
| 674 | 674 | // In debug mode, module is being activated by default |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | }); |
| 679 | 679 | $this->registerAlias('QueryLogger', \OCP\Diagnostics\IQueryLogger::class); |
| 680 | 680 | |
| 681 | - $this->registerService(TempManager::class, function (Server $c) { |
|
| 681 | + $this->registerService(TempManager::class, function(Server $c) { |
|
| 682 | 682 | return new TempManager( |
| 683 | 683 | $c->getLogger(), |
| 684 | 684 | $c->getConfig() |
@@ -687,7 +687,7 @@ discard block |
||
| 687 | 687 | $this->registerAlias('TempManager', TempManager::class); |
| 688 | 688 | $this->registerAlias(ITempManager::class, TempManager::class); |
| 689 | 689 | |
| 690 | - $this->registerService(AppManager::class, function (Server $c) { |
|
| 690 | + $this->registerService(AppManager::class, function(Server $c) { |
|
| 691 | 691 | return new \OC\App\AppManager( |
| 692 | 692 | $c->getUserSession(), |
| 693 | 693 | $c->query(\OC\AppConfig::class), |
@@ -699,7 +699,7 @@ discard block |
||
| 699 | 699 | $this->registerAlias('AppManager', AppManager::class); |
| 700 | 700 | $this->registerAlias(IAppManager::class, AppManager::class); |
| 701 | 701 | |
| 702 | - $this->registerService(\OCP\IDateTimeZone::class, function (Server $c) { |
|
| 702 | + $this->registerService(\OCP\IDateTimeZone::class, function(Server $c) { |
|
| 703 | 703 | return new DateTimeZone( |
| 704 | 704 | $c->getConfig(), |
| 705 | 705 | $c->getSession() |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | }); |
| 708 | 708 | $this->registerAlias('DateTimeZone', \OCP\IDateTimeZone::class); |
| 709 | 709 | |
| 710 | - $this->registerService(\OCP\IDateTimeFormatter::class, function (Server $c) { |
|
| 710 | + $this->registerService(\OCP\IDateTimeFormatter::class, function(Server $c) { |
|
| 711 | 711 | $language = $c->getConfig()->getUserValue($c->getSession()->get('user_id'), 'core', 'lang', null); |
| 712 | 712 | |
| 713 | 713 | return new DateTimeFormatter( |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | }); |
| 718 | 718 | $this->registerAlias('DateTimeFormatter', \OCP\IDateTimeFormatter::class); |
| 719 | 719 | |
| 720 | - $this->registerService(\OCP\Files\Config\IUserMountCache::class, function (Server $c) { |
|
| 720 | + $this->registerService(\OCP\Files\Config\IUserMountCache::class, function(Server $c) { |
|
| 721 | 721 | $mountCache = new UserMountCache($c->getDatabaseConnection(), $c->getUserManager(), $c->getLogger()); |
| 722 | 722 | $listener = new UserMountCacheListener($mountCache); |
| 723 | 723 | $listener->listen($c->getUserManager()); |
@@ -725,7 +725,7 @@ discard block |
||
| 725 | 725 | }); |
| 726 | 726 | $this->registerAlias('UserMountCache', \OCP\Files\Config\IUserMountCache::class); |
| 727 | 727 | |
| 728 | - $this->registerService(\OCP\Files\Config\IMountProviderCollection::class, function (Server $c) { |
|
| 728 | + $this->registerService(\OCP\Files\Config\IMountProviderCollection::class, function(Server $c) { |
|
| 729 | 729 | $loader = \OC\Files\Filesystem::getLoader(); |
| 730 | 730 | $mountCache = $c->query('UserMountCache'); |
| 731 | 731 | $manager = new \OC\Files\Config\MountProviderCollection($loader, $mountCache); |
@@ -741,10 +741,10 @@ discard block |
||
| 741 | 741 | }); |
| 742 | 742 | $this->registerAlias('MountConfigManager', \OCP\Files\Config\IMountProviderCollection::class); |
| 743 | 743 | |
| 744 | - $this->registerService('IniWrapper', function ($c) { |
|
| 744 | + $this->registerService('IniWrapper', function($c) { |
|
| 745 | 745 | return new IniGetWrapper(); |
| 746 | 746 | }); |
| 747 | - $this->registerService('AsyncCommandBus', function (Server $c) { |
|
| 747 | + $this->registerService('AsyncCommandBus', function(Server $c) { |
|
| 748 | 748 | $busClass = $c->getConfig()->getSystemValue('commandbus'); |
| 749 | 749 | if ($busClass) { |
| 750 | 750 | list($app, $class) = explode('::', $busClass, 2); |
@@ -759,10 +759,10 @@ discard block |
||
| 759 | 759 | return new CronBus($jobList); |
| 760 | 760 | } |
| 761 | 761 | }); |
| 762 | - $this->registerService('TrustedDomainHelper', function ($c) { |
|
| 762 | + $this->registerService('TrustedDomainHelper', function($c) { |
|
| 763 | 763 | return new TrustedDomainHelper($this->getConfig()); |
| 764 | 764 | }); |
| 765 | - $this->registerService(Throttler::class, function (Server $c) { |
|
| 765 | + $this->registerService(Throttler::class, function(Server $c) { |
|
| 766 | 766 | return new Throttler( |
| 767 | 767 | $c->getDatabaseConnection(), |
| 768 | 768 | new TimeFactory(), |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | ); |
| 772 | 772 | }); |
| 773 | 773 | $this->registerAlias('Throttler', Throttler::class); |
| 774 | - $this->registerService('IntegrityCodeChecker', function (Server $c) { |
|
| 774 | + $this->registerService('IntegrityCodeChecker', function(Server $c) { |
|
| 775 | 775 | // IConfig and IAppManager requires a working database. This code |
| 776 | 776 | // might however be called when ownCloud is not yet setup. |
| 777 | 777 | if (\OC::$server->getSystemConfig()->getValue('installed', false)) { |
@@ -792,7 +792,7 @@ discard block |
||
| 792 | 792 | $c->getTempManager() |
| 793 | 793 | ); |
| 794 | 794 | }); |
| 795 | - $this->registerService(\OCP\IRequest::class, function ($c) { |
|
| 795 | + $this->registerService(\OCP\IRequest::class, function($c) { |
|
| 796 | 796 | if (isset($this['urlParams'])) { |
| 797 | 797 | $urlParams = $this['urlParams']; |
| 798 | 798 | } else { |
@@ -828,7 +828,7 @@ discard block |
||
| 828 | 828 | }); |
| 829 | 829 | $this->registerAlias('Request', \OCP\IRequest::class); |
| 830 | 830 | |
| 831 | - $this->registerService(\OCP\Mail\IMailer::class, function (Server $c) { |
|
| 831 | + $this->registerService(\OCP\Mail\IMailer::class, function(Server $c) { |
|
| 832 | 832 | return new Mailer( |
| 833 | 833 | $c->getConfig(), |
| 834 | 834 | $c->getLogger(), |
@@ -839,7 +839,7 @@ discard block |
||
| 839 | 839 | }); |
| 840 | 840 | $this->registerAlias('Mailer', \OCP\Mail\IMailer::class); |
| 841 | 841 | |
| 842 | - $this->registerService('LDAPProvider', function (Server $c) { |
|
| 842 | + $this->registerService('LDAPProvider', function(Server $c) { |
|
| 843 | 843 | $config = $c->getConfig(); |
| 844 | 844 | $factoryClass = $config->getSystemValue('ldapProviderFactory', null); |
| 845 | 845 | if (is_null($factoryClass)) { |
@@ -849,7 +849,7 @@ discard block |
||
| 849 | 849 | $factory = new $factoryClass($this); |
| 850 | 850 | return $factory->getLDAPProvider(); |
| 851 | 851 | }); |
| 852 | - $this->registerService(ILockingProvider::class, function (Server $c) { |
|
| 852 | + $this->registerService(ILockingProvider::class, function(Server $c) { |
|
| 853 | 853 | $ini = $c->getIniWrapper(); |
| 854 | 854 | $config = $c->getConfig(); |
| 855 | 855 | $ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time'))); |
@@ -872,49 +872,49 @@ discard block |
||
| 872 | 872 | }); |
| 873 | 873 | $this->registerAlias('LockingProvider', ILockingProvider::class); |
| 874 | 874 | |
| 875 | - $this->registerService(\OCP\Files\Mount\IMountManager::class, function () { |
|
| 875 | + $this->registerService(\OCP\Files\Mount\IMountManager::class, function() { |
|
| 876 | 876 | return new \OC\Files\Mount\Manager(); |
| 877 | 877 | }); |
| 878 | 878 | $this->registerAlias('MountManager', \OCP\Files\Mount\IMountManager::class); |
| 879 | 879 | |
| 880 | - $this->registerService(\OCP\Files\IMimeTypeDetector::class, function (Server $c) { |
|
| 880 | + $this->registerService(\OCP\Files\IMimeTypeDetector::class, function(Server $c) { |
|
| 881 | 881 | return new \OC\Files\Type\Detection( |
| 882 | 882 | $c->getURLGenerator(), |
| 883 | 883 | \OC::$configDir, |
| 884 | - \OC::$SERVERROOT . '/resources/config/' |
|
| 884 | + \OC::$SERVERROOT.'/resources/config/' |
|
| 885 | 885 | ); |
| 886 | 886 | }); |
| 887 | 887 | $this->registerAlias('MimeTypeDetector', \OCP\Files\IMimeTypeDetector::class); |
| 888 | 888 | |
| 889 | - $this->registerService(\OCP\Files\IMimeTypeLoader::class, function (Server $c) { |
|
| 889 | + $this->registerService(\OCP\Files\IMimeTypeLoader::class, function(Server $c) { |
|
| 890 | 890 | return new \OC\Files\Type\Loader( |
| 891 | 891 | $c->getDatabaseConnection() |
| 892 | 892 | ); |
| 893 | 893 | }); |
| 894 | 894 | $this->registerAlias('MimeTypeLoader', \OCP\Files\IMimeTypeLoader::class); |
| 895 | - $this->registerService(BundleFetcher::class, function () { |
|
| 895 | + $this->registerService(BundleFetcher::class, function() { |
|
| 896 | 896 | return new BundleFetcher($this->getL10N('lib')); |
| 897 | 897 | }); |
| 898 | - $this->registerService(\OCP\Notification\IManager::class, function (Server $c) { |
|
| 898 | + $this->registerService(\OCP\Notification\IManager::class, function(Server $c) { |
|
| 899 | 899 | return new Manager( |
| 900 | 900 | $c->query(IValidator::class) |
| 901 | 901 | ); |
| 902 | 902 | }); |
| 903 | 903 | $this->registerAlias('NotificationManager', \OCP\Notification\IManager::class); |
| 904 | 904 | |
| 905 | - $this->registerService(\OC\CapabilitiesManager::class, function (Server $c) { |
|
| 905 | + $this->registerService(\OC\CapabilitiesManager::class, function(Server $c) { |
|
| 906 | 906 | $manager = new \OC\CapabilitiesManager($c->getLogger()); |
| 907 | - $manager->registerCapability(function () use ($c) { |
|
| 907 | + $manager->registerCapability(function() use ($c) { |
|
| 908 | 908 | return new \OC\OCS\CoreCapabilities($c->getConfig()); |
| 909 | 909 | }); |
| 910 | - $manager->registerCapability(function () use ($c) { |
|
| 910 | + $manager->registerCapability(function() use ($c) { |
|
| 911 | 911 | return $c->query(\OC\Security\Bruteforce\Capabilities::class); |
| 912 | 912 | }); |
| 913 | 913 | return $manager; |
| 914 | 914 | }); |
| 915 | 915 | $this->registerAlias('CapabilitiesManager', \OC\CapabilitiesManager::class); |
| 916 | 916 | |
| 917 | - $this->registerService(\OCP\Comments\ICommentsManager::class, function (Server $c) { |
|
| 917 | + $this->registerService(\OCP\Comments\ICommentsManager::class, function(Server $c) { |
|
| 918 | 918 | $config = $c->getConfig(); |
| 919 | 919 | $factoryClass = $config->getSystemValue('comments.managerFactory', CommentsManagerFactory::class); |
| 920 | 920 | /** @var \OCP\Comments\ICommentsManagerFactory $factory */ |
@@ -924,7 +924,7 @@ discard block |
||
| 924 | 924 | $manager->registerDisplayNameResolver('user', function($id) use ($c) { |
| 925 | 925 | $manager = $c->getUserManager(); |
| 926 | 926 | $user = $manager->get($id); |
| 927 | - if(is_null($user)) { |
|
| 927 | + if (is_null($user)) { |
|
| 928 | 928 | $l = $c->getL10N('core'); |
| 929 | 929 | $displayName = $l->t('Unknown user'); |
| 930 | 930 | } else { |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | }); |
| 938 | 938 | $this->registerAlias('CommentsManager', \OCP\Comments\ICommentsManager::class); |
| 939 | 939 | |
| 940 | - $this->registerService('ThemingDefaults', function (Server $c) { |
|
| 940 | + $this->registerService('ThemingDefaults', function(Server $c) { |
|
| 941 | 941 | /* |
| 942 | 942 | * Dark magic for autoloader. |
| 943 | 943 | * If we do a class_exists it will try to load the class which will |
@@ -965,7 +965,7 @@ discard block |
||
| 965 | 965 | } |
| 966 | 966 | return new \OC_Defaults(); |
| 967 | 967 | }); |
| 968 | - $this->registerService(SCSSCacher::class, function (Server $c) { |
|
| 968 | + $this->registerService(SCSSCacher::class, function(Server $c) { |
|
| 969 | 969 | return new SCSSCacher( |
| 970 | 970 | $c->getLogger(), |
| 971 | 971 | $c->query(\OC\Files\AppData\Factory::class), |
@@ -978,7 +978,7 @@ discard block |
||
| 978 | 978 | new TimeFactory() |
| 979 | 979 | ); |
| 980 | 980 | }); |
| 981 | - $this->registerService(JSCombiner::class, function (Server $c) { |
|
| 981 | + $this->registerService(JSCombiner::class, function(Server $c) { |
|
| 982 | 982 | return new JSCombiner( |
| 983 | 983 | $c->getAppDataDir('js'), |
| 984 | 984 | $c->getURLGenerator(), |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | $this->registerAlias('EventDispatcher', \OC\EventDispatcher\SymfonyAdapter::class); |
| 992 | 992 | $this->registerAlias(EventDispatcherInterface::class, \OC\EventDispatcher\SymfonyAdapter::class); |
| 993 | 993 | |
| 994 | - $this->registerService('CryptoWrapper', function (Server $c) { |
|
| 994 | + $this->registerService('CryptoWrapper', function(Server $c) { |
|
| 995 | 995 | // FIXME: Instantiiated here due to cyclic dependency |
| 996 | 996 | $request = new Request( |
| 997 | 997 | [ |
@@ -1016,7 +1016,7 @@ discard block |
||
| 1016 | 1016 | $request |
| 1017 | 1017 | ); |
| 1018 | 1018 | }); |
| 1019 | - $this->registerService('CsrfTokenManager', function (Server $c) { |
|
| 1019 | + $this->registerService('CsrfTokenManager', function(Server $c) { |
|
| 1020 | 1020 | $tokenGenerator = new CsrfTokenGenerator($c->getSecureRandom()); |
| 1021 | 1021 | |
| 1022 | 1022 | return new CsrfTokenManager( |
@@ -1024,22 +1024,22 @@ discard block |
||
| 1024 | 1024 | $c->query(SessionStorage::class) |
| 1025 | 1025 | ); |
| 1026 | 1026 | }); |
| 1027 | - $this->registerService(SessionStorage::class, function (Server $c) { |
|
| 1027 | + $this->registerService(SessionStorage::class, function(Server $c) { |
|
| 1028 | 1028 | return new SessionStorage($c->getSession()); |
| 1029 | 1029 | }); |
| 1030 | - $this->registerService(\OCP\Security\IContentSecurityPolicyManager::class, function (Server $c) { |
|
| 1030 | + $this->registerService(\OCP\Security\IContentSecurityPolicyManager::class, function(Server $c) { |
|
| 1031 | 1031 | return new ContentSecurityPolicyManager(); |
| 1032 | 1032 | }); |
| 1033 | 1033 | $this->registerAlias('ContentSecurityPolicyManager', \OCP\Security\IContentSecurityPolicyManager::class); |
| 1034 | 1034 | |
| 1035 | - $this->registerService('ContentSecurityPolicyNonceManager', function (Server $c) { |
|
| 1035 | + $this->registerService('ContentSecurityPolicyNonceManager', function(Server $c) { |
|
| 1036 | 1036 | return new ContentSecurityPolicyNonceManager( |
| 1037 | 1037 | $c->getCsrfTokenManager(), |
| 1038 | 1038 | $c->getRequest() |
| 1039 | 1039 | ); |
| 1040 | 1040 | }); |
| 1041 | 1041 | |
| 1042 | - $this->registerService(\OCP\Share\IManager::class, function (Server $c) { |
|
| 1042 | + $this->registerService(\OCP\Share\IManager::class, function(Server $c) { |
|
| 1043 | 1043 | $config = $c->getConfig(); |
| 1044 | 1044 | $factoryClass = $config->getSystemValue('sharing.managerFactory', ProviderFactory::class); |
| 1045 | 1045 | /** @var \OCP\Share\IProviderFactory $factory */ |
@@ -1086,7 +1086,7 @@ discard block |
||
| 1086 | 1086 | |
| 1087 | 1087 | $this->registerAlias(\OCP\Collaboration\Resources\IManager::class, \OC\Collaboration\Resources\Manager::class); |
| 1088 | 1088 | |
| 1089 | - $this->registerService('SettingsManager', function (Server $c) { |
|
| 1089 | + $this->registerService('SettingsManager', function(Server $c) { |
|
| 1090 | 1090 | $manager = new \OC\Settings\Manager( |
| 1091 | 1091 | $c->getLogger(), |
| 1092 | 1092 | $c->getL10NFactory(), |
@@ -1095,36 +1095,36 @@ discard block |
||
| 1095 | 1095 | ); |
| 1096 | 1096 | return $manager; |
| 1097 | 1097 | }); |
| 1098 | - $this->registerService(\OC\Files\AppData\Factory::class, function (Server $c) { |
|
| 1098 | + $this->registerService(\OC\Files\AppData\Factory::class, function(Server $c) { |
|
| 1099 | 1099 | return new \OC\Files\AppData\Factory( |
| 1100 | 1100 | $c->getRootFolder(), |
| 1101 | 1101 | $c->getSystemConfig() |
| 1102 | 1102 | ); |
| 1103 | 1103 | }); |
| 1104 | 1104 | |
| 1105 | - $this->registerService('LockdownManager', function (Server $c) { |
|
| 1106 | - return new LockdownManager(function () use ($c) { |
|
| 1105 | + $this->registerService('LockdownManager', function(Server $c) { |
|
| 1106 | + return new LockdownManager(function() use ($c) { |
|
| 1107 | 1107 | return $c->getSession(); |
| 1108 | 1108 | }); |
| 1109 | 1109 | }); |
| 1110 | 1110 | |
| 1111 | - $this->registerService(\OCP\OCS\IDiscoveryService::class, function (Server $c) { |
|
| 1111 | + $this->registerService(\OCP\OCS\IDiscoveryService::class, function(Server $c) { |
|
| 1112 | 1112 | return new DiscoveryService($c->getMemCacheFactory(), $c->getHTTPClientService()); |
| 1113 | 1113 | }); |
| 1114 | 1114 | |
| 1115 | - $this->registerService(ICloudIdManager::class, function (Server $c) { |
|
| 1115 | + $this->registerService(ICloudIdManager::class, function(Server $c) { |
|
| 1116 | 1116 | return new CloudIdManager(); |
| 1117 | 1117 | }); |
| 1118 | 1118 | |
| 1119 | - $this->registerService(IConfig::class, function (Server $c) { |
|
| 1119 | + $this->registerService(IConfig::class, function(Server $c) { |
|
| 1120 | 1120 | return new GlobalScale\Config($c->getConfig()); |
| 1121 | 1121 | }); |
| 1122 | 1122 | |
| 1123 | - $this->registerService(ICloudFederationProviderManager::class, function (Server $c) { |
|
| 1123 | + $this->registerService(ICloudFederationProviderManager::class, function(Server $c) { |
|
| 1124 | 1124 | return new CloudFederationProviderManager($c->getAppManager(), $c->getHTTPClientService(), $c->getCloudIdManager(), $c->getLogger()); |
| 1125 | 1125 | }); |
| 1126 | 1126 | |
| 1127 | - $this->registerService(ICloudFederationFactory::class, function (Server $c) { |
|
| 1127 | + $this->registerService(ICloudFederationFactory::class, function(Server $c) { |
|
| 1128 | 1128 | return new CloudFederationFactory(); |
| 1129 | 1129 | }); |
| 1130 | 1130 | |
@@ -1134,18 +1134,18 @@ discard block |
||
| 1134 | 1134 | $this->registerAlias(\OCP\AppFramework\Utility\ITimeFactory::class, \OC\AppFramework\Utility\TimeFactory::class); |
| 1135 | 1135 | $this->registerAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class); |
| 1136 | 1136 | |
| 1137 | - $this->registerService(Defaults::class, function (Server $c) { |
|
| 1137 | + $this->registerService(Defaults::class, function(Server $c) { |
|
| 1138 | 1138 | return new Defaults( |
| 1139 | 1139 | $c->getThemingDefaults() |
| 1140 | 1140 | ); |
| 1141 | 1141 | }); |
| 1142 | 1142 | $this->registerAlias('Defaults', \OCP\Defaults::class); |
| 1143 | 1143 | |
| 1144 | - $this->registerService(\OCP\ISession::class, function (SimpleContainer $c) { |
|
| 1144 | + $this->registerService(\OCP\ISession::class, function(SimpleContainer $c) { |
|
| 1145 | 1145 | return $c->query(\OCP\IUserSession::class)->getSession(); |
| 1146 | 1146 | }); |
| 1147 | 1147 | |
| 1148 | - $this->registerService(IShareHelper::class, function (Server $c) { |
|
| 1148 | + $this->registerService(IShareHelper::class, function(Server $c) { |
|
| 1149 | 1149 | return new ShareHelper( |
| 1150 | 1150 | $c->query(\OCP\Share\IManager::class) |
| 1151 | 1151 | ); |
@@ -1188,7 +1188,7 @@ discard block |
||
| 1188 | 1188 | $this->registerAlias(IDashboardManager::class, DashboardManager::class); |
| 1189 | 1189 | $this->registerAlias(IFullTextSearchManager::class, FullTextSearchManager::class); |
| 1190 | 1190 | |
| 1191 | - $this->registerService(\OC\Security\IdentityProof\Manager::class, function (Server $c) { |
|
| 1191 | + $this->registerService(\OC\Security\IdentityProof\Manager::class, function(Server $c) { |
|
| 1192 | 1192 | return new \OC\Security\IdentityProof\Manager( |
| 1193 | 1193 | $c->query(\OC\Files\AppData\Factory::class), |
| 1194 | 1194 | $c->getCrypto(), |
@@ -1241,11 +1241,11 @@ discard block |
||
| 1241 | 1241 | // no avatar to remove |
| 1242 | 1242 | } catch (\Exception $e) { |
| 1243 | 1243 | // Ignore exceptions |
| 1244 | - $logger->info('Could not cleanup avatar of ' . $user->getUID()); |
|
| 1244 | + $logger->info('Could not cleanup avatar of '.$user->getUID()); |
|
| 1245 | 1245 | } |
| 1246 | 1246 | }); |
| 1247 | 1247 | |
| 1248 | - $dispatcher->addListener('OCP\IUser::changeUser', function (GenericEvent $e) { |
|
| 1248 | + $dispatcher->addListener('OCP\IUser::changeUser', function(GenericEvent $e) { |
|
| 1249 | 1249 | $manager = $this->getAvatarManager(); |
| 1250 | 1250 | /** @var IUser $user */ |
| 1251 | 1251 | $user = $e->getSubject(); |
@@ -1401,7 +1401,7 @@ discard block |
||
| 1401 | 1401 | * @deprecated since 9.2.0 use IAppData |
| 1402 | 1402 | */ |
| 1403 | 1403 | public function getAppFolder() { |
| 1404 | - $dir = '/' . \OC_App::getCurrentApp(); |
|
| 1404 | + $dir = '/'.\OC_App::getCurrentApp(); |
|
| 1405 | 1405 | $root = $this->getRootFolder(); |
| 1406 | 1406 | if (!$root->nodeExists($dir)) { |
| 1407 | 1407 | $folder = $root->newFolder($dir); |
@@ -1976,7 +1976,7 @@ discard block |
||
| 1976 | 1976 | /** |
| 1977 | 1977 | * @return \OCP\Collaboration\AutoComplete\IManager |
| 1978 | 1978 | */ |
| 1979 | - public function getAutoCompleteManager(){ |
|
| 1979 | + public function getAutoCompleteManager() { |
|
| 1980 | 1980 | return $this->query(IManager::class); |
| 1981 | 1981 | } |
| 1982 | 1982 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | function() use ($container) { |
| 79 | 79 | return $container->query(Notifier::class); |
| 80 | 80 | }, |
| 81 | - function () use ($container) { |
|
| 81 | + function() use ($container) { |
|
| 82 | 82 | $l = $container->query(IL10N::class); |
| 83 | 83 | return ['id' => 'twofactor_backupcodes', 'name' => $l->t('Second-factor backup codes')]; |
| 84 | 84 | } |
@@ -6,27 +6,27 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => $baseDir . '/../lib/Activity/Provider.php', |
|
| 10 | - 'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 11 | - 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => $baseDir . '/../lib/BackgroundJob/CheckBackupCodes.php', |
|
| 12 | - 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => $baseDir . '/../lib/BackgroundJob/RememberBackupCodesJob.php', |
|
| 13 | - 'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => $baseDir . '/../lib/Controller/SettingsController.php', |
|
| 14 | - 'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => $baseDir . '/../lib/Db/BackupCode.php', |
|
| 15 | - 'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => $baseDir . '/../lib/Db/BackupCodeMapper.php', |
|
| 16 | - 'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => $baseDir . '/../lib/Event/CodesGenerated.php', |
|
| 17 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => $baseDir . '/../lib/Listener/ActivityPublisher.php', |
|
| 18 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => $baseDir . '/../lib/Listener/ClearNotifications.php', |
|
| 19 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => $baseDir . '/../lib/Listener/ProviderDisabled.php', |
|
| 20 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => $baseDir . '/../lib/Listener/ProviderEnabled.php', |
|
| 21 | - 'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => $baseDir . '/../lib/Listener/RegistryUpdater.php', |
|
| 22 | - 'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => $baseDir . '/../lib/Migration/CheckBackupCodes.php', |
|
| 23 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => $baseDir . '/../lib/Migration/Version1002Date20170607104347.php', |
|
| 24 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => $baseDir . '/../lib/Migration/Version1002Date20170607113030.php', |
|
| 25 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => $baseDir . '/../lib/Migration/Version1002Date20170919123342.php', |
|
| 26 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => $baseDir . '/../lib/Migration/Version1002Date20170926101419.php', |
|
| 27 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => $baseDir . '/../lib/Migration/Version1002Date20180821043638.php', |
|
| 28 | - 'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => $baseDir . '/../lib/Notifications/Notifier.php', |
|
| 29 | - 'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => $baseDir . '/../lib/Provider/BackupCodesProvider.php', |
|
| 30 | - 'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => $baseDir . '/../lib/Service/BackupCodeStorage.php', |
|
| 31 | - 'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php', |
|
| 9 | + 'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => $baseDir.'/../lib/Activity/Provider.php', |
|
| 10 | + 'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 11 | + 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => $baseDir.'/../lib/BackgroundJob/CheckBackupCodes.php', |
|
| 12 | + 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => $baseDir.'/../lib/BackgroundJob/RememberBackupCodesJob.php', |
|
| 13 | + 'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => $baseDir.'/../lib/Controller/SettingsController.php', |
|
| 14 | + 'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => $baseDir.'/../lib/Db/BackupCode.php', |
|
| 15 | + 'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => $baseDir.'/../lib/Db/BackupCodeMapper.php', |
|
| 16 | + 'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => $baseDir.'/../lib/Event/CodesGenerated.php', |
|
| 17 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => $baseDir.'/../lib/Listener/ActivityPublisher.php', |
|
| 18 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => $baseDir.'/../lib/Listener/ClearNotifications.php', |
|
| 19 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => $baseDir.'/../lib/Listener/ProviderDisabled.php', |
|
| 20 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => $baseDir.'/../lib/Listener/ProviderEnabled.php', |
|
| 21 | + 'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => $baseDir.'/../lib/Listener/RegistryUpdater.php', |
|
| 22 | + 'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => $baseDir.'/../lib/Migration/CheckBackupCodes.php', |
|
| 23 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => $baseDir.'/../lib/Migration/Version1002Date20170607104347.php', |
|
| 24 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => $baseDir.'/../lib/Migration/Version1002Date20170607113030.php', |
|
| 25 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => $baseDir.'/../lib/Migration/Version1002Date20170919123342.php', |
|
| 26 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => $baseDir.'/../lib/Migration/Version1002Date20170926101419.php', |
|
| 27 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => $baseDir.'/../lib/Migration/Version1002Date20180821043638.php', |
|
| 28 | + 'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => $baseDir.'/../lib/Notifications/Notifier.php', |
|
| 29 | + 'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => $baseDir.'/../lib/Provider/BackupCodesProvider.php', |
|
| 30 | + 'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => $baseDir.'/../lib/Service/BackupCodeStorage.php', |
|
| 31 | + 'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php', |
|
| 32 | 32 | ); |
@@ -6,49 +6,49 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitTwoFactorBackupCodes |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\TwoFactorBackupCodes\\' => 25, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\TwoFactorBackupCodes\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => __DIR__ . '/..' . '/../lib/Activity/Provider.php', |
|
| 25 | - 'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 26 | - 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => __DIR__ . '/..' . '/../lib/BackgroundJob/CheckBackupCodes.php', |
|
| 27 | - 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => __DIR__ . '/..' . '/../lib/BackgroundJob/RememberBackupCodesJob.php', |
|
| 28 | - 'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => __DIR__ . '/..' . '/../lib/Controller/SettingsController.php', |
|
| 29 | - 'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => __DIR__ . '/..' . '/../lib/Db/BackupCode.php', |
|
| 30 | - 'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => __DIR__ . '/..' . '/../lib/Db/BackupCodeMapper.php', |
|
| 31 | - 'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => __DIR__ . '/..' . '/../lib/Event/CodesGenerated.php', |
|
| 32 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => __DIR__ . '/..' . '/../lib/Listener/ActivityPublisher.php', |
|
| 33 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => __DIR__ . '/..' . '/../lib/Listener/ClearNotifications.php', |
|
| 34 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => __DIR__ . '/..' . '/../lib/Listener/ProviderDisabled.php', |
|
| 35 | - 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => __DIR__ . '/..' . '/../lib/Listener/ProviderEnabled.php', |
|
| 36 | - 'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => __DIR__ . '/..' . '/../lib/Listener/RegistryUpdater.php', |
|
| 37 | - 'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => __DIR__ . '/..' . '/../lib/Migration/CheckBackupCodes.php', |
|
| 38 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170607104347.php', |
|
| 39 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170607113030.php', |
|
| 40 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170919123342.php', |
|
| 41 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20170926101419.php', |
|
| 42 | - 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => __DIR__ . '/..' . '/../lib/Migration/Version1002Date20180821043638.php', |
|
| 43 | - 'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => __DIR__ . '/..' . '/../lib/Notifications/Notifier.php', |
|
| 44 | - 'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => __DIR__ . '/..' . '/../lib/Provider/BackupCodesProvider.php', |
|
| 45 | - 'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => __DIR__ . '/..' . '/../lib/Service/BackupCodeStorage.php', |
|
| 46 | - 'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'OCA\\TwoFactorBackupCodes\\Activity\\Provider' => __DIR__.'/..'.'/../lib/Activity/Provider.php', |
|
| 25 | + 'OCA\\TwoFactorBackupCodes\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 26 | + 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\CheckBackupCodes' => __DIR__.'/..'.'/../lib/BackgroundJob/CheckBackupCodes.php', |
|
| 27 | + 'OCA\\TwoFactorBackupCodes\\BackgroundJob\\RememberBackupCodesJob' => __DIR__.'/..'.'/../lib/BackgroundJob/RememberBackupCodesJob.php', |
|
| 28 | + 'OCA\\TwoFactorBackupCodes\\Controller\\SettingsController' => __DIR__.'/..'.'/../lib/Controller/SettingsController.php', |
|
| 29 | + 'OCA\\TwoFactorBackupCodes\\Db\\BackupCode' => __DIR__.'/..'.'/../lib/Db/BackupCode.php', |
|
| 30 | + 'OCA\\TwoFactorBackupCodes\\Db\\BackupCodeMapper' => __DIR__.'/..'.'/../lib/Db/BackupCodeMapper.php', |
|
| 31 | + 'OCA\\TwoFactorBackupCodes\\Event\\CodesGenerated' => __DIR__.'/..'.'/../lib/Event/CodesGenerated.php', |
|
| 32 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ActivityPublisher' => __DIR__.'/..'.'/../lib/Listener/ActivityPublisher.php', |
|
| 33 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ClearNotifications' => __DIR__.'/..'.'/../lib/Listener/ClearNotifications.php', |
|
| 34 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderDisabled' => __DIR__.'/..'.'/../lib/Listener/ProviderDisabled.php', |
|
| 35 | + 'OCA\\TwoFactorBackupCodes\\Listener\\ProviderEnabled' => __DIR__.'/..'.'/../lib/Listener/ProviderEnabled.php', |
|
| 36 | + 'OCA\\TwoFactorBackupCodes\\Listener\\RegistryUpdater' => __DIR__.'/..'.'/../lib/Listener/RegistryUpdater.php', |
|
| 37 | + 'OCA\\TwoFactorBackupCodes\\Migration\\CheckBackupCodes' => __DIR__.'/..'.'/../lib/Migration/CheckBackupCodes.php', |
|
| 38 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607104347' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170607104347.php', |
|
| 39 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170607113030' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170607113030.php', |
|
| 40 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170919123342' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170919123342.php', |
|
| 41 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20170926101419' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20170926101419.php', |
|
| 42 | + 'OCA\\TwoFactorBackupCodes\\Migration\\Version1002Date20180821043638' => __DIR__.'/..'.'/../lib/Migration/Version1002Date20180821043638.php', |
|
| 43 | + 'OCA\\TwoFactorBackupCodes\\Notifications\\Notifier' => __DIR__.'/..'.'/../lib/Notifications/Notifier.php', |
|
| 44 | + 'OCA\\TwoFactorBackupCodes\\Provider\\BackupCodesProvider' => __DIR__.'/..'.'/../lib/Provider/BackupCodesProvider.php', |
|
| 45 | + 'OCA\\TwoFactorBackupCodes\\Service\\BackupCodeStorage' => __DIR__.'/..'.'/../lib/Service/BackupCodeStorage.php', |
|
| 46 | + 'OCA\\TwoFactorBackupCodes\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | 49 | public static function getInitializer(ClassLoader $loader) |
| 50 | 50 | { |
| 51 | - return \Closure::bind(function () use ($loader) { |
|
| 51 | + return \Closure::bind(function() use ($loader) { |
|
| 52 | 52 | $loader->prefixLengthsPsr4 = ComposerStaticInitTwoFactorBackupCodes::$prefixLengthsPsr4; |
| 53 | 53 | $loader->prefixDirsPsr4 = ComposerStaticInitTwoFactorBackupCodes::$prefixDirsPsr4; |
| 54 | 54 | $loader->classMap = ComposerStaticInitTwoFactorBackupCodes::$classMap; |