src/Dev/Debug.php
public static function create_debug_view(HTTPRequest $request = null)
    {
        $service = static::supportsHTML($request)
            ? DebugView::class
            : CliDebugView::class;
        return Injector::inst()->get($service);
    }
public static function create_debug_view(HTTPRequest $request = null)
    {
        $service = static::supportsHTML($request)
            ? DebugView::class
            : CliDebugView::class;
        return Injector::inst()->get($service);
    }
public static function create_debug_view ( HTTPRequest $ request = null ) { $ service = static :: supportsHTML ( $ request ) ? DebugView :: class : CliDebugView :: class ; return Injector :: inst ( ) -> get ( $ service ) ; }
Create an instance of an appropriate DebugView object.

@param HTTPRequest $request Optional request to target this view for
@return DebugView
Create an instance of an appropriate DebugView object .