Remove duplicated definition of APIController
This commit is contained in:
parent
810d5a6a67
commit
d6939d67da
|
@ -19,7 +19,6 @@ class Application extends App {
|
||||||
parent::__construct('files', $urlParams);
|
parent::__construct('files', $urlParams);
|
||||||
$container = $this->getContainer();
|
$container = $this->getContainer();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Controllers
|
* Controllers
|
||||||
*/
|
*/
|
||||||
|
@ -52,16 +51,5 @@ class Application extends App {
|
||||||
$homeFolder
|
$homeFolder
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* Controllers
|
|
||||||
*/
|
|
||||||
$container->registerService('APIController', function (IContainer $c) {
|
|
||||||
return new ApiController(
|
|
||||||
$c->query('AppName'),
|
|
||||||
$c->query('Request'),
|
|
||||||
$c->query('TagService')
|
|
||||||
);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue