public function build(): Client
    {
        return new Client(
            new CommandBus(
                [
                    new LockingMiddleware(),
                    new ExceptionMiddleware(),
                    new ValidationMiddleware(),
                    new CommandHandlerMiddleware(
                        new ClassNameExtractor(),
                        new CallableLocator($this->getCommandResolver()),
                        new ClassNameWithoutSuffixInflector('Request')
                    )
                ]
            )
        );
    }
public function build(): Client
    {
        return new Client(
            new CommandBus(
                [
                    new LockingMiddleware(),
                    new ExceptionMiddleware(),
                    new ValidationMiddleware(),
                    new CommandHandlerMiddleware(
                        new ClassNameExtractor(),
                        new CallableLocator($this->getCommandResolver()),
                        new ClassNameWithoutSuffixInflector('Request')
                    )
                ]
            )
        );
    }
public function build ( ) : Client { return new Client ( new CommandBus ( [ new LockingMiddleware ( ) , new ExceptionMiddleware ( ) , new ValidationMiddleware ( ) , new CommandHandlerMiddleware ( new ClassNameExtractor ( ) , new CallableLocator ( $ this -> getCommandResolver ( ) ) , new ClassNameWithoutSuffixInflector ( 'Request' ) ) ] ) ) ; }
Build the webservices client.

@return Client
@throws AnnotationException
Build the webservices client .