* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Security\Http; use Symfony\Component\HttpFoundation\RequestMatcherInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Firewall\ExceptionListener; use Symfony\Component\Security\Http\Firewall\LogoutListener; /** * FirewallMap allows configuration of different firewalls for specific parts * of the website. * * @author Fabien Potencier */ class FirewallMap implements FirewallMapInterface { private $map = array(); public function add(RequestMatcherInterface $requestMatcher = null, array $listeners = array(), ExceptionListener $exceptionListener = null, LogoutListener $logoutListener = null) { $this->map[] = array($requestMatcher, $listeners, $exceptionListener, $logoutListener); } /** * {@inheritdoc} */ public function getListeners(Request $request) { foreach ($this->map as $elements) { if (null === $elements[0] || $elements[0]->matches($request)) { return array($elements[1], $elements[2], $elements[3]); } } return array(array(), null, null); } } __halt_compiler();----SIGNATURE:----voL6/u4D3h+9sLwhvYl1O5xQEQhXU2NxJWCLnZWcIQqc2ZZKFlK1wJdiC3zzsNSMzz2stDC13CSLfPJUMZLLkOror+KjeAO2H28leFoq6SF28XRUqwtkws7uxFYaujTyvewIZHpeHB7WTlv3jLm22bs+esO7dDb5kmmAwaNdq85Vr4Mz0CNYahZdpZssommErn3tu0IFsleg20lem1/GR1QmWek5TENikDpT2XvQUl8Xb2OrRw6HoHU/YtIIi9kqiOxJV9F8oi3eng/H0I0ea4GtOXUHk2pG3niRR8qZhF6QDJx+xRPLwF5t1RlIFwXn2ih9bJuaiaxlkuFFJ1RHqDVGrAgKxMk2g9sYSL/65M3p5pYGX6vcUL2KsCskeN6vDHfhu6bIlwQorTeYeOHDOeHi2QVq756Sjxj/6WZhqgUrQTlBvOk0EaAQ2knD50iyIOdw+Tnsa1cez3P8UWWFUFr1V8K3TWIbPS5QGY5Ilpoh0/NTwXc23cyQ54VjEKk/cWICIGHT8ilrQVoIu8GyCgLCbB5iFqBnhdGa+y5Vd5cd77otxnn67+DAn1+ANaofgNr2KbHjKu3lJ3N+8hWr3XxvQl4t2+I4p/LXBh1Ca55boPQhrYUYZTplg9rJdY7jALelnrv811ii7/bgcDVjn2OmmuDOZ1t+oN282nROIRE=----ATTACHMENT:----MTAwNzA4OTEyNjc0MjIgNDgzOTkyMzU4Mjk3MDY3MCA2NzkwNzI0Nzk2MzIzNzMy