summaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo/application.php
blob: 7ca48bab47445769a6c00d2f164bb82e2ab76bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * Copyright (c) 2014 Lukas Reschke <lukas@owncloud.com>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */

namespace OCA\Files\Appinfo;

use OC\AppFramework\Utility\SimpleContainer;
use OCA\Files\Controller\ApiController;
use OCP\AppFramework\App;

class Application extends App {
	public function __construct(array $urlParams=array()) {
		parent::__construct('files', $urlParams);
		$container = $this->getContainer();


		/**
		 * Controllers
		 */
		$container->registerService('APIController', function (SimpleContainer $c) {
			return new ApiController(
				$c->query('AppName'),
				$c->query('Request')
			);
		});
	}
}