concrete/src/Http/DefaultServer.php
public function addMiddleware(MiddlewareInterface $middleware, $priority = 10)
    {
        $this->stack = $this->stack->withMiddleware($middleware, $priority);
        return $this;
    }
public function addMiddleware(MiddlewareInterface $middleware, $priority = 10)
    {
        $this->stack = $this->stack->withMiddleware($middleware, $priority);
        return $this;
    }
public function addMiddleware ( MiddlewareInterface $ middleware , $ priority = 10 ) { $ this -> stack = $ this -> stack -> withMiddleware ( $ middleware , $ priority ) ; return $ this ; }
Add a middleware to the stack
@param \Concrete\Core\Http\Middleware\MiddlewareInterface $middleware
@param int $priority
@return self
Add a middleware to the stack