src/Providers/MiddlewareServiceProvider.php
protected function registerCmsWebGroupMiddleware()
    {
        $this->router->middlewareGroup($this->getConfiguredWebGroupName(), []);

        foreach ($this->getGlobalWebMiddleware() as $middleware) {

            // Don't add if the middleware is already globally enabled in the kernel
            if ($this->kernel->hasMiddleware($middleware)) {
                // @codeCoverageIgnoreStart
                continue;
                // @codeCoverageIgnoreEnd
            }

            $this->router->pushMiddlewareToGroup($this->getConfiguredWebGroupName(), $middleware);
        }

        return $this;
    }
protected function registerCmsWebGroupMiddleware()
    {
        $this->router->middlewareGroup($this->getConfiguredWebGroupName(), []);

        foreach ($this->getGlobalWebMiddleware() as $middleware) {

            // Don't add if the middleware is already globally enabled in the kernel
            if ($this->kernel->hasMiddleware($middleware)) {
                // @codeCoverageIgnoreStart
                continue;
                // @codeCoverageIgnoreEnd
            }

            $this->router->pushMiddlewareToGroup($this->getConfiguredWebGroupName(), $middleware);
        }

        return $this;
    }
protected function registerCmsWebGroupMiddleware ( ) { $ this -> router -> middlewareGroup ( $ this -> getConfiguredWebGroupName ( ) , [ ] ) ; foreach ( $ this -> getGlobalWebMiddleware ( ) as $ middleware ) { // Don't add if the middleware is already globally enabled in the kernel if ( $ this -> kernel -> hasMiddleware ( $ middleware ) ) { // @codeCoverageIgnoreStart continue ; // @codeCoverageIgnoreEnd } $ this -> router -> pushMiddlewareToGroup ( $ this -> getConfiguredWebGroupName ( ) , $ middleware ) ; } return $ this ; }
Registers global middleware for the CMS

@return $this
Registers global middleware for the CMS