(cq) remove unsed variables

This commit is contained in:
Simon Vieille 2022-08-21 13:48:42 +02:00
parent 280c1d72ae
commit fa9d5abf62
Signed by: deblan
GPG Key ID: 579388D585F70417
1 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ class Application extends App implements IBootstrap
$cache = $this->config->getAppValue(self::APP_ID, 'cache', '0');
foreach ($assets as $key => $value) {
foreach ($assets as $value) {
$route = OC::$server->getURLGenerator()->linkToRoute($value['route'], ['v' => $cache]);
$value['attr'][$value['route_attr']] = $route;
@ -106,15 +106,15 @@ class Application extends App implements IBootstrap
public function register(IRegistrationContext $context): void
{
$context->registerService('AppRepository', function (ContainerInterface $c) {
$context->registerService('AppRepository', function () {
return new AppRepository();
});
$context->registerService('CategoryRepository', function (ContainerInterface $c) {
$context->registerService('CategoryRepository', function () {
return new CategoryRepository();
});
$context->registerService('ConfigProxy', function (ContainerInterface $c) {
$context->registerService('ConfigProxy', function () {
return new ConfigProxy();
});
}