/** * * @param PCRequest $request * @param PCAuthCookiesAdapter $adapter */ public function __construct($request, $adapter = NULL) { parent::__construct($request); $this->adapter = ($adapter == NULL ? new PCAuthDefaultCookiesAdapter() : $adapter); $this->application = PCModelManager::fetchObjectWithIdentifier(PCModelApplication::getMapper(), PCModelApplication::WEBSITE_APP_ID, NULL, TRUE); $this->setupSession(); $this->authorize(); }
public function __construct($request) { $this->request = $request; $this->application = PCModelManager::fetchObjectWithIdentifier(PCModelApplication::getMapper(), PCModelApplication::WEBSITE_APP_ID, NULL, TRUE); $this->setupSession(); }