$13 GRAYBYTE WORDPRESS FILE MANAGER $14

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

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

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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * 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\HttpKernelInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * Sets the session in the request.
 *
 * @author Johannes M. Schmitt <[email protected]>
 */
abstract class SessionListener implements EventSubscriberInterface
{
    public function onKernelRequest(GetResponseEvent $event)
    {
        if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) {
            return;
        }

        $request = $event->getRequest();
        $session = $this->getSession();
        if (null === $session || $request->hasSession()) {
            return;
        }

        $request->setSession($session);
    }

    public static function getSubscribedEvents()
    {
        return array(
            KernelEvents::REQUEST => array('onKernelRequest', 128),
        );
    }

    /**
     * Gets the session object.
     *
     * @return SessionInterface|null A SessionInterface instance of null if no session is available
     */
    abstract protected function getSession();
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


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

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF