PHP code example of aubry / symfony-kernel-event-listener

1. Go to this page and download the library: Download aubry/symfony-kernel-event-listener library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aubry / symfony-kernel-event-listener example snippets




namespace _____;

use Aubry\SymfonyKernelEventListener\KernelRequestListenerInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;

class _____Listener 
{
    /**
     * @param GetResponseEvent $event
     */
    public function onKernelRequest(GetResponseEvent $event): void
    {
        // Implement desired behaviour here.
    }
}