firewall = $firewall; return $this; } /** * @return Firewall */ public function getFirewall() { if (null === $this->firewall) { throw new \LogicException('Firewall was not set'); } return $this->firewall; } /** * Ensure User has a specific right * * @param string $right */ public function requireRight($right) { $this->getFirewall()->requireRight($right); } }