forked from deblan/side_menu
app:check compliance
This commit is contained in:
parent
0eefcd23cd
commit
4225b157e0
|
@ -72,7 +72,7 @@ class Application extends App
|
||||||
$container = $this->getContainer();
|
$container = $this->getContainer();
|
||||||
|
|
||||||
$container->registerService('AppRepository', function (ContainerInterface $c) {
|
$container->registerService('AppRepository', function (ContainerInterface $c) {
|
||||||
return new AppRepository(new OC_App());
|
return new AppRepository();
|
||||||
});
|
});
|
||||||
|
|
||||||
$container->registerService('ConfigProxy', function (ContainerInterface $c) {
|
$container->registerService('ConfigProxy', function (ContainerInterface $c) {
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
namespace OCA\SideMenu\Service;
|
namespace OCA\SideMenu\Service;
|
||||||
|
|
||||||
use OC_App;
|
|
||||||
use OCP\L10N\IFactory;
|
use OCP\L10N\IFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +12,7 @@ use OCP\L10N\IFactory;
|
||||||
class AppRepository
|
class AppRepository
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var OC_App
|
* @var \OC_App
|
||||||
*/
|
*/
|
||||||
protected $ocApp;
|
protected $ocApp;
|
||||||
|
|
||||||
|
@ -22,7 +21,7 @@ class AppRepository
|
||||||
*/
|
*/
|
||||||
protected $l10nFactory;
|
protected $l10nFactory;
|
||||||
|
|
||||||
public function __construct(OC_App $ocApp, IFactory $l10nFactory)
|
public function __construct(\OC_App $ocApp, IFactory $l10nFactory)
|
||||||
{
|
{
|
||||||
$this->ocApp = $ocApp;
|
$this->ocApp = $ocApp;
|
||||||
$this->l10nFactory = $l10nFactory;
|
$this->l10nFactory = $l10nFactory;
|
||||||
|
|
Loading…
Reference in a new issue