public function getAdminSession() { $session = $this->getBreezeSession(); if (!$session) { /** * @todo introduce exception */ return null; } $success = $this->login($this->adcInfo->getLogin(), $this->adcInfo->getPasswd(), $session); if ($success) { return $session; } else { /** * @todo introduce exception */ return null; } }