src/Debug_Service_Provider.php
private function init_whoops()
    {
        $whoops = new Run;
        $general = new General();
    
        $whoops->pushHandler($general->get_handler());
        $whoops->pushHandler(new Ajax());
        $whoops->pushHandler(new Rest_Api());

        $whoops->register();

        \ob_start();

        // Add to Service container.
        Container::add_instance($whoops);
    }
private function init_whoops()
    {
        $whoops = new Run;
        $general = new General();
    
        $whoops->pushHandler($general->get_handler());
        $whoops->pushHandler(new Ajax());
        $whoops->pushHandler(new Rest_Api());

        $whoops->register();

        \ob_start();

        // Add to Service container.
        Container::add_instance($whoops);
    }
private function init_whoops ( ) { $ whoops = new Run ; $ general = new General ( ) ; $ whoops -> pushHandler ( $ general -> get_handler ( ) ) ; $ whoops -> pushHandler ( new Ajax ( ) ) ; $ whoops -> pushHandler ( new Rest_Api ( ) ) ; $ whoops -> register ( ) ; \ ob_start ( ) ; // Add to Service container. Container :: add_instance ( $ whoops ) ; }
Register the Whoops service into the service container.

@since  1.0.0
Register the Whoops service into the service container .