protected function transform($middleware)
    {
        if (is_string($middleware))
        {
            return $this->container->get($middleware);
        }

        if (is_callable($middleware))
        {
            return new ClosureMiddleware($middleware);
        }

        return $middleware;
    }
protected function transform($middleware)
    {
        if (is_string($middleware))
        {
            return $this->container->get($middleware);
        }

        if (is_callable($middleware))
        {
            return new ClosureMiddleware($middleware);
        }

        return $middleware;
    }
protected function transform ( $ middleware ) { if ( is_string ( $ middleware ) ) { return $ this -> container -> get ( $ middleware ) ; } if ( is_callable ( $ middleware ) ) { return new ClosureMiddleware ( $ middleware ) ; } return $ middleware ; }
Transforms the specified input into a middleware.

@param  mixed $middleware
@return \Zapheus\Http\Server\MiddlewareInterface
Transforms the specified input into a middleware .