e62d5b7e55
Thumbnail generation Removed Log Added requested changes Added requested changes. - Fix code style - Add exception if file does not exist - Switch route styling Replaces https://github.com/owncloud/core/pull/10805 Fix codestyle Fix codestyle Migrate to appframework Fix typo
31 lines
712 B
PHP
31 lines
712 B
PHP
<?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')
|
|
);
|
|
});
|
|
}
|
|
}
|