src/Viserio/Component/Routing/Route.php
protected function getControllerDisabledMiddleware(): array
    {
        if (! $this->isControllerAction()) {
            return [];
        }

        $controller = $this->getController();

        if (\method_exists($controller, 'gatherDisabledMiddleware')) {
            return $controller->gatherDisabledMiddleware();
        }

        return [];
    }
protected function getControllerDisabledMiddleware(): array
    {
        if (! $this->isControllerAction()) {
            return [];
        }

        $controller = $this->getController();

        if (\method_exists($controller, 'gatherDisabledMiddleware')) {
            return $controller->gatherDisabledMiddleware();
        }

        return [];
    }
Get the bound route controller disabled middleware.

@return array