(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

View file

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