public function authenticate() { $result = $this->authenticator->authenticate(); if ($result) { $this->output->writeQueued('Authorization succeeded.' . PHP_EOL, 'output highlight'); } else { $this->output->writeQueued('Authorization failed.' . PHP_EOL, 'error highlight'); } return $result; }
public function write($data, $cssClass, $rawOutput = false) { $data = $rawOutput ? $data : "<div class=\"{$cssClass}\">" . htmlentities($data) . "</div>"; parent::write($data); }