public static function getPathInfo(ServerRequestInterface $request)
    {
        return $request->getAttribute(self::PATH_INFO, null) ?: $request->getUri()->getPath();
    }
public static function getPathInfo(ServerRequestInterface $request)
    {
        return $request->getAttribute(self::PATH_INFO, null) ?: $request->getUri()->getPath();
    }
public static function getPathInfo ( ServerRequestInterface $ request ) { return $ request -> getAttribute ( self :: PATH_INFO , null ) ? : $ request -> getUri ( ) -> getPath ( ) ; }
get a path-info, or uri's path if not set.

@param ServerRequestInterface $request
@return string
get a path - info or uri s path if not set .