original_string: 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]));
  			}
  		}
  	}
code: 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]));
  			}
  		}
  	}
code_tokens: 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 ] ) ) ; } } }
docstring: Initializes SanctionComponent for use in the controller
  
  @param object $controller A reference to the instantiating controller object
  @return void
docstring_tokens: Initializes SanctionComponent for use in the controller