DependencyInjection/JsonRequestExtension.php
protected function loadInternal(array $configs, ContainerBuilder $container)
    {
        $listener = new Definition($configs['listener']['request_transformer']);

        $listener->addTag('kernel.event_listener', [
            'event' => 'kernel.request',
            'method' => 'onKernelRequest',
            'priority' => $configs['listener']['priority'],
        ]);

        $container->setDefinition('sb_json_request.request_transformer', $listener);
    }
protected function loadInternal(array $configs, ContainerBuilder $container)
    {
        $listener = new Definition($configs['listener']['request_transformer']);

        $listener->addTag('kernel.event_listener', [
            'event' => 'kernel.request',
            'method' => 'onKernelRequest',
            'priority' => $configs['listener']['priority'],
        ]);

        $container->setDefinition('sb_json_request.request_transformer', $listener);
    }
{@inheritdoc}