src/Controller/Component/UserToolComponent.php
protected function _getAuthObject() {
		if (!$this->_registry->has('Auth')) {
			$Auth = $this->_registry->load('Auth', $this->getConfig('auth'));
			$Auth->request = $this->_getRequest();
			$Auth->response = $this->_getResponse();

			return $Auth;
		}

			return $this->_registry->Auth;
		}
protected function _getAuthObject() {
		if (!$this->_registry->has('Auth')) {
			$Auth = $this->_registry->load('Auth', $this->getConfig('auth'));
			$Auth->request = $this->_getRequest();
			$Auth->response = $this->_getResponse();

			return $Auth;
		}

			return $this->_registry->Auth;
		}
protected function _getAuthObject ( ) { if ( ! $ this -> _registry -> has ( 'Auth' ) ) { $ Auth = $ this -> _registry -> load ( 'Auth' , $ this -> getConfig ( 'auth' ) ) ; $ Auth -> request = $ this -> _getRequest ( ) ; $ Auth -> response = $ this -> _getResponse ( ) ; return $ Auth ; } return $ this -> _registry -> Auth ; }
Gets the auth component object

If there is an auth component loaded it will take that one from the
controller. If not the configured default settings will be used to create
a new instance of the auth component. This is mostly thought as a fallback,
in a real world scenario the app should have set auth set up in it's
AppController.

@return \Cake\Controller\Component\AuthComponent
Gets the auth component object