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

application.php « appinfo - github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8176180e6c047ff3a89238f68cb05445d0c28dd5 (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')
            );
        });

    }
}