$42 GRAYBYTE WORDPRESS FILE MANAGER $73

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/php54/usr/share/pear/Symfony/Component/HttpKernel/EventListener/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/HttpKernel/EventListener//ResponseListener.php
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * 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\HttpKernel\Event\FilterResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * ResponseListener fixes the Response headers based on the Request.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
class ResponseListener implements EventSubscriberInterface
{
    private $charset;

    public function __construct($charset)
    {
        $this->charset = $charset;
    }

    /**
     * Filters the Response.
     *
     * @param FilterResponseEvent $event A FilterResponseEvent instance
     */
    public function onKernelResponse(FilterResponseEvent $event)
    {
        if (!$event->isMasterRequest()) {
            return;
        }

        $response = $event->getResponse();

        if (null === $response->getCharset()) {
            $response->setCharset($this->charset);
        }

        $response->prepare($event->getRequest());
    }

    public static function getSubscribedEvents()
    {
        return array(
            KernelEvents::RESPONSE => 'onKernelResponse',
        );
    }
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 7.05 AM
root / root
0755
ErrorsLoggerListener.php
1.198 KB
18 Dec 2019 6.22 PM
root / root
0644
EsiListener.php
1.399 KB
18 Dec 2019 6.22 PM
root / root
0644
ExceptionListener.php
4.223 KB
18 Dec 2019 6.22 PM
root / root
0644
FragmentListener.php
3.384 KB
18 Dec 2019 6.22 PM
root / root
0644
LocaleListener.php
3.328 KB
18 Dec 2019 6.22 PM
root / root
0644
ProfilerListener.php
5.384 KB
18 Dec 2019 6.22 PM
root / root
0644
ResponseListener.php
1.368 KB
18 Dec 2019 6.22 PM
root / root
0644
RouterListener.php
6.544 KB
18 Dec 2019 6.22 PM
root / root
0644
SessionListener.php
1.414 KB
18 Dec 2019 6.22 PM
root / root
0644
StreamedResponseListener.php
1.285 KB
18 Dec 2019 6.22 PM
root / root
0644
TestSessionListener.php
2.563 KB
18 Dec 2019 6.22 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF