(cq) remove unsed variables
This commit is contained in:
parent
280c1d72ae
commit
fa9d5abf62
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue