Controller/Component/PermitComponent.php
public function initialize(Controller $controller) {
		if ($this->settings['isTest']) {
			return;
		}

		$this->user = $this->Session->read("{$this->settings['path']}");

		$this->routes = Permit::$routes;
		Permit::$user = $this->user;

		$this->request = $controller->request;

		foreach (array('controller', 'plugin') as $inflected) {
			if (isset($this->request->params[$inflected])) {
				$this->request->params[$inflected] = strtolower(Inflector::underscore($this->request->params[$inflected]));
			}
		}
	}
public function initialize(Controller $controller) {
		if ($this->settings['isTest']) {
			return;
		}

		$this->user = $this->Session->read("{$this->settings['path']}");

		$this->routes = Permit::$routes;
		Permit::$user = $this->user;

		$this->request = $controller->request;

		foreach (array('controller', 'plugin') as $inflected) {
			if (isset($this->request->params[$inflected])) {
				$this->request->params[$inflected] = strtolower(Inflector::underscore($this->request->params[$inflected]));
			}
		}
	}
public function initialize ( Controller $ controller ) { if ( $ this -> settings [ 'isTest' ] ) { return ; } $ this -> user = $ this -> Session -> read ( "{$this->settings['path']}" ) ; $ this -> routes = Permit :: $ routes ; Permit :: $ user = $ this -> user ; $ this -> request = $ controller -> request ; foreach ( array ( 'controller' , 'plugin' ) as $ inflected ) { if ( isset ( $ this -> request -> params [ $ inflected ] ) ) { $ this -> request -> params [ $ inflected ] = strtolower ( Inflector :: underscore ( $ this -> request -> params [ $ inflected ] ) ) ; } } }
Initializes SanctionComponent for use in the controller

@param object $controller A reference to the instantiating controller object
@return void
Initializes SanctionComponent for use in the controller