diff options
Diffstat (limited to 'core/lostpassword/application.php')
-rw-r--r-- | core/lostpassword/application.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/core/lostpassword/application.php b/core/lostpassword/application.php new file mode 100644 index 00000000000..1d22af5f610 --- /dev/null +++ b/core/lostpassword/application.php @@ -0,0 +1,38 @@ +<?php +/** + * @author Victor Dubiniuk + * @copyright 2014 Victor Dubiniuk victor.dubiniuk@gmail.com + * + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OC\Core\LostPassword; + +use \OCP\AppFramework\App; +use OC\Core\LostPassword\Controller\LostController; + +class Application extends App { + public function __construct(array $urlParams=array()){ + parent::__construct('core', $urlParams); + + $container = $this->getContainer(); + + /** + * Controllers + */ + $container->registerService('LostController', function($c) { + return new LostController( + $c->query('AppName'), + $c->query('ServerContainer')->getRequest(), + $c->query('ServerContainer')->getURLGenerator(), + $c->query('ServerContainer')->getUserManager(), + new \OC_Defaults(), + $c->query('ServerContainer')->getL10N('core'), + \OCP\Util::getDefaultEmailAddress('lostpassword-noreply'), + \OC_App::isEnabled('files_encryption') + ); + }); + } +} |