src/DependencyInjection/EightPointsGuzzleExtension.php
protected function createEventMiddleware(string $name) : Definition
    {
        $eventMiddleWare = new Definition('%eight_points_guzzle.middleware.event_dispatcher.class%');
        $eventMiddleWare->addArgument(new Reference('event_dispatcher'));
        $eventMiddleWare->addArgument($name);
        $eventMiddleWare->setPublic(true);

        return $eventMiddleWare;
    }
protected function createEventMiddleware(string $name) : Definition
    {
        $eventMiddleWare = new Definition('%eight_points_guzzle.middleware.event_dispatcher.class%');
        $eventMiddleWare->addArgument(new Reference('event_dispatcher'));
        $eventMiddleWare->addArgument($name);
        $eventMiddleWare->setPublic(true);

        return $eventMiddleWare;
    }
protected function createEventMiddleware ( string $ name ) : Definition { $ eventMiddleWare = new Definition ( '%eight_points_guzzle.middleware.event_dispatcher.class%' ) ; $ eventMiddleWare -> addArgument ( new Reference ( 'event_dispatcher' ) ) ; $ eventMiddleWare -> addArgument ( $ name ) ; $ eventMiddleWare -> setPublic ( true ) ; return $ eventMiddleWare ; }
Create Middleware For dispatching events

@param string $name

@return \Symfony\Component\DependencyInjection\Definition
Create Middleware For dispatching events