src/ServiceRuntime/Internal/RuntimeKernel.php
public static function getKernel($forceNewInstance = false)
    {
        if (is_null(self::$_theKernel) || $forceNewInstance) {
            self::$_theKernel = new self();
        }

        return self::$_theKernel;
    }
public static function getKernel($forceNewInstance = false)
    {
        if (is_null(self::$_theKernel) || $forceNewInstance) {
            self::$_theKernel = new self();
        }

        return self::$_theKernel;
    }
public static function getKernel ( $ forceNewInstance = false ) { if ( is_null ( self :: $ _theKernel ) || $ forceNewInstance ) { self :: $ _theKernel = new self ( ) ; } return self :: $ _theKernel ; }
Gets the current kernel instance.

@param bool $forceNewInstance Boolean value indicating if a new instance
should be obtained even if a previous one exists

@return RuntimeKernel
Gets the current kernel instance .