protected function callMiddleware(
        $middleware,
        string $method = "",
        array &$arguments = [],
        string $type = Caller::TYPE_DEFAULT,
        $result = null
    ) {
        if (! $this->skipMiddleware) {
            $result = $this->middlewareCaller($middleware, $result)
                ->as($type)
                ->catch($this->catchHaltExceptions)
                ->call($method, $arguments);
        }
        return $result;
    }
protected function callMiddleware(
        $middleware,
        string $method = "",
        array &$arguments = [],
        string $type = Caller::TYPE_DEFAULT,
        $result = null
    ) {
        if (! $this->skipMiddleware) {
            $result = $this->middlewareCaller($middleware, $result)
                ->as($type)
                ->catch($this->catchHaltExceptions)
                ->call($method, $arguments);
        }
        return $result;
    }
protected function callMiddleware ( $ middleware , string $ method = "" , array & $ arguments = [ ] , string $ type = Caller :: TYPE_DEFAULT , $ result = null ) { if ( ! $ this -> skipMiddleware ) { $ result = $ this -> middlewareCaller ( $ middleware , $ result ) -> as ( $ type ) -> catch ( $ this -> catchHaltExceptions ) -> call ( $ method , $ arguments ) ; } return $ result ; }
Call middleware pieces.

@throws \MichaelRShelton\MiddleMan\Exceptions\HaltPropagationException if requested

@param mixed $middleware
@param string $method
@param array $arguments
@param $response
@param string $key
@return mixed
Call middleware pieces .