* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\EventListener; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\KernelEvents; /** * Validates Requests. * * @author Magnus Nordlander */ class ValidateRequestListener implements EventSubscriberInterface { /** * Performs the validation. */ public function onKernelRequest(GetResponseEvent $event) { if (!$event->isMasterRequest()) { return; } $request = $event->getRequest(); if ($request::getTrustedProxies()) { $request->getClientIps(); } $request->getHost(); } /** * {@inheritdoc} */ public static function getSubscribedEvents() { return array( KernelEvents::REQUEST => array( array('onKernelRequest', 256), ), ); } } __halt_compiler();----SIGNATURE:----So8w53tRubQPn/GErgG0NkihGyf+WBxQ5UawJRocnKXfTehPWiH0F6EimOrlYF/FvEyJVtyhiQVU28GVf9lSoSiaAqkmki3YbWEsysY1DrOwLYAPcl1TqbktxtOPWPInfbSVxuWlT+jRdfo2Fvdr5Y/obdv2m/wTRZgBAsi5I4O3hoXxJCg7Wgj5UHIqjyHZxg8ETWfzx/wuL/u4JJQYBKQ/VCCME6OIpH4QTaxgwpmN+oRUB3QGUTx4VANKwz1/qGgvncrPQZdyAkQfF/OB03jYUFBd2F+v5C7XbRW1Bc2bmMmTeeUwi8+8aSvaYCbX5V7LfFKecEzJvqHfBuvJwwD8m4Oo+vvwCORFazZdrNkchDEa3+zpFO9LAPNDgEAKy82OHOKTJF4pvU8QuCO52vSj9lydGYpbtDsVUwFTd7HR2tfyWaEzoIPpe+XI+9/d91IGKNk3M5iNkKXascXBLj25+cURHwcFzOB6KfKDn4lp36AY3OOEd+8VRcogQX0t3yxqcWSghbtL1XQM56V+vO2sdfH71LbvFwzzEehcii6qFMqwAchLH8YGR373OZrEMui5AAo3IRVFT9NVOxgk8GL6TM7OOOI4rgpZ2Rp67iDcEg6s0B5KTuLN79acndd3KErQ0NmX4SNYzYT3ZO6jZzCR1aqEZTG+cJVoiX5w4f8=----ATTACHMENT:----NDE2OTQ4NzAzNjgzNjk3NSA2MjU1Mjc0ODUxNDUyMDMzIDUyOTQ0NTcwMzE1MjcyMzc=