public function middleware($middleware, $name = null)
	{
        if($name)
            $this->properties['middleware'][$name] = $middleware;
        else
            $this->properties['middleware'][] = $middleware;

		return $this;
	}
public function middleware($middleware, $name = null)
	{
        if($name)
            $this->properties['middleware'][$name] = $middleware;
        else
            $this->properties['middleware'][] = $middleware;

		return $this;
	}
public function middleware ( $ middleware , $ name = null ) { if ( $ name ) $ this -> properties [ 'middleware' ] [ $ name ] = $ middleware ; else $ this -> properties [ 'middleware' ] [ ] = $ middleware ; return $ this ; }
Alias to addMiddleware
@param mixed $middleware handler
@param null $name
@return $this
Alias to addMiddleware