src/Phpro/SoapClient/Client.php
/**
     * For backward compatibility with Symfony 4
     *
     * @deprecated : We will remove this method  in v2.0 in favour of injecting the internal dispatcher directly.
     */
For backward compatibility with Symfony 4
@deprecated : We will remove this method  in v2.0 in favour of injecting the internal dispatcher directly.
For backward compatibility with Symfony 4 @deprecated : We will remove this method in v2 . 0 in favour of injecting the internal dispatcher directly .
private function dispatch(Event\SoapEvent $event, string $name = null): Event\SoapEvent
    {
        $dispatcher = $this->dispatcher instanceof EventDispatcherInterface
            ? $this->dispatcher
            : new Event\Dispatcher\SymfonyEventDispatcher($this->dispatcher);
        return $dispatcher->dispatch($event, $name);
    }
private function dispatch ( Event \ SoapEvent $ event , string $ name = null ) : Event \ SoapEvent { $ dispatcher = $ this -> dispatcher instanceof EventDispatcherInterface ? $ this -> dispatcher : new Event \ Dispatcher \ SymfonyEventDispatcher ( $ this -> dispatcher ) ; return $ dispatcher -> dispatch ( $ event , $ name ) ; }
For backward compatibility with Symfony 4
 @deprecated : We will remove this method  in v2.0 in favour of injecting the internal dispatcher directly.
For backward compatibility with Symfony 4 @deprecated : We will remove this method in v2 . 0 in favour of injecting the internal dispatcher directly .