src/Chiron/Routing/RouteResult.php
public function getMatchedRouteMiddlewareStack()
    {
        if ($this->isFailure()) {
            return false;
        }

        if (! $this->matchedRouteMiddlewareStack && $this->route) {
            $this->matchedRouteMiddlewareStack = $this->route->gatherMiddlewareStack();
        }

        return $this->matchedRouteMiddlewareStack;
    }
public function getMatchedRouteMiddlewareStack()
    {
        if ($this->isFailure()) {
            return false;
        }

        if (! $this->matchedRouteMiddlewareStack && $this->route) {
            $this->matchedRouteMiddlewareStack = $this->route->gatherMiddlewareStack();
        }

        return $this->matchedRouteMiddlewareStack;
    }
public function getMatchedRouteMiddlewareStack ( ) { if ( $ this -> isFailure ( ) ) { return false ; } if ( ! $ this -> matchedRouteMiddlewareStack && $ this -> route ) { $ this -> matchedRouteMiddlewareStack = $ this -> route -> gatherMiddlewareStack ( ) ; } return $ this -> matchedRouteMiddlewareStack ; }
Retrieve all the middlewares, if possible.

If this result represents a failure, return false; otherwise, return the
middleware of the Route + middleware of the RouteGroup.

@return false|array
Retrieve all the middlewares if possible .