Blame view

sources/core/lostpassword/application.php 1.06 KB
6d9380f96   Cédric Dupont   Update sources OC...
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
32
33
34
35
36
37
38
39
40
41
42
43
44
  <?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('Request'),
  				$c->query('ServerContainer')->getURLGenerator(),
  				$c->query('ServerContainer')->getUserManager(),
  				new \OC_Defaults(),
  				$c->query('ServerContainer')->getL10N('core'),
  				$c->query('ServerContainer')->getConfig(),
  				$c->query('ServerContainer')->getUserSession(),
  				\OCP\Util::getDefaultEmailAddress('lostpassword-noreply'),
  				\OC_App::isEnabled('files_encryption')
  			);
  		});
  	}
  
  
  }