protected static function initResponse()
    {
        if (true === self::$registry->getParameter('doozr.kernel.debugging')) {
            self::$registry->getDebugbar()['time']->startMeasure('preparing-response', 'Preparing response');
        }

        self::$registry->setResponse(
            self::$registry->getContainer()->build(
                'Doozr_Response_'.self::$registry->getParameter('doozr.kernel.runtime.environment')
            )
        );

        if (true === self::$registry->getParameter('doozr.kernel.debugging')) {
            self::$registry->getDebugbar()['time']->stopMeasure('preparing-response');
        }

        // Important for bootstrap result
        return true;
    }
protected static function initResponse()
    {
        if (true === self::$registry->getParameter('doozr.kernel.debugging')) {
            self::$registry->getDebugbar()['time']->startMeasure('preparing-response', 'Preparing response');
        }

        self::$registry->setResponse(
            self::$registry->getContainer()->build(
                'Doozr_Response_'.self::$registry->getParameter('doozr.kernel.runtime.environment')
            )
        );

        if (true === self::$registry->getParameter('doozr.kernel.debugging')) {
            self::$registry->getDebugbar()['time']->stopMeasure('preparing-response');
        }

        // Important for bootstrap result
        return true;
    }
protected static function initResponse ( ) { if ( true === self :: $ registry -> getParameter ( 'doozr.kernel.debugging' ) ) { self :: $ registry -> getDebugbar ( ) [ 'time' ] -> startMeasure ( 'preparing-response' , 'Preparing response' ) ; } self :: $ registry -> setResponse ( self :: $ registry -> getContainer ( ) -> build ( 'Doozr_Response_' . self :: $ registry -> getParameter ( 'doozr.kernel.runtime.environment' ) ) ) ; if ( true === self :: $ registry -> getParameter ( 'doozr.kernel.debugging' ) ) { self :: $ registry -> getDebugbar ( ) [ 'time' ] -> stopMeasure ( 'preparing-response' ) ; } // Important for bootstrap result return true ; }
Initialize the response state.

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success
@static
Initialize the response state .