public static function setUp($configClass = 'Kwf_Config_Web')
    {
        error_reporting(E_ALL & ~E_STRICT);
        define('APP_PATH', getcwd());
        Kwf_Setup::$configClass = $configClass;
        if (PHP_SAPI == 'cli') {
            //don't use cached setup on cli so clear-cache will always work even if eg. paths change
            require_once dirname(__FILE__).'/../Kwf/Util/Setup.php';
            Kwf_Util_Setup::minimalBootstrap();
            $setupCode = Kwf_Util_Setup::generateCode();
            Zend_Registry::_unsetInstance();
            eval(substr($setupCode, 5));
        } else if (!@include(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php')) {
            if (!file_exists(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php')) {
                require_once dirname(__FILE__).'/../Kwf/Util/Setup.php';
                Kwf_Util_Setup::minimalBootstrapAndGenerateFile();
            }
            include(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php');
        }

        Kwf_Benchmark::checkpoint('setUp');
    }
public static function setUp($configClass = 'Kwf_Config_Web')
    {
        error_reporting(E_ALL & ~E_STRICT);
        define('APP_PATH', getcwd());
        Kwf_Setup::$configClass = $configClass;
        if (PHP_SAPI == 'cli') {
            //don't use cached setup on cli so clear-cache will always work even if eg. paths change
            require_once dirname(__FILE__).'/../Kwf/Util/Setup.php';
            Kwf_Util_Setup::minimalBootstrap();
            $setupCode = Kwf_Util_Setup::generateCode();
            Zend_Registry::_unsetInstance();
            eval(substr($setupCode, 5));
        } else if (!@include(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php')) {
            if (!file_exists(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php')) {
                require_once dirname(__FILE__).'/../Kwf/Util/Setup.php';
                Kwf_Util_Setup::minimalBootstrapAndGenerateFile();
            }
            include(APP_PATH.'/cache/setup'.self::CACHE_SETUP_VERSION.'.php');
        }

        Kwf_Benchmark::checkpoint('setUp');
    }
public static function setUp ( $ configClass = 'Kwf_Config_Web' ) { error_reporting ( E_ALL & ~ E_STRICT ) ; define ( 'APP_PATH' , getcwd ( ) ) ; Kwf_Setup :: $ configClass = $ configClass ; if ( PHP_SAPI == 'cli' ) { //don't use cached setup on cli so clear-cache will always work even if eg. paths change require_once dirname ( __FILE__ ) . '/../Kwf/Util/Setup.php' ; Kwf_Util_Setup :: minimalBootstrap ( ) ; $ setupCode = Kwf_Util_Setup :: generateCode ( ) ; Zend_Registry :: _unsetInstance ( ) ; eval ( substr ( $ setupCode , 5 ) ) ; } else if ( ! @ include ( APP_PATH . '/cache/setup' . self :: CACHE_SETUP_VERSION . '.php' ) ) { if ( ! file_exists ( APP_PATH . '/cache/setup' . self :: CACHE_SETUP_VERSION . '.php' ) ) { require_once dirname ( __FILE__ ) . '/../Kwf/Util/Setup.php' ; Kwf_Util_Setup :: minimalBootstrapAndGenerateFile ( ) ; } include ( APP_PATH . '/cache/setup' . self :: CACHE_SETUP_VERSION . '.php' ) ; } Kwf_Benchmark :: checkpoint ( 'setUp' ) ; }
increase version if incompatible changes to generated file are made
increase version if incompatible changes to generated file are made