Welcome to mirror list, hosted at ThFree Co, Russian Federation.

application.php « appinfo - github.com/nextcloud/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 14553bdf40b9c59bc59c4f74f899d90fb50c5d1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

namespace OCA\AppOrder\AppInfo;

use \OCP\AppFramework\App;
use \OCA\AppOrder\Service\ConfigService;

class Application extends App {

    public function __construct(array $urlParams=array()){
        parent::__construct('apporder', $urlParams);
        $container = $this->getContainer();
        $container->registerService('ConfigService', function($c) {
            return new ConfigService(
                $c->query('Config'),
                $c->query('AppName')
            );
        });

    }
}