<?php
/**
 * CLI Bootstrap for Performance Optimization Classes
 * Minimal bootstrap to load optimization classes in CLI context
 */

// Define BASEPATH to bypass CodeIgniter security check
if (!defined('BASEPATH')) {
    define('BASEPATH', dirname(__DIR__) . '/');
}

// Define other constants that might be needed
if (!defined('APPPATH')) {
    define('APPPATH', BASEPATH . 'application/');
}

if (!defined('FCPATH')) {
    define('FCPATH', BASEPATH);
}

// Mock CI functions that might be needed
if (!function_exists('get_instance')) {
    function get_instance() {
        static $CI;
        if (!$CI) {
            $CI = new stdClass();
        }
        return $CI;
    }
}

if (!function_exists('log_message')) {
    function log_message($level, $message) {
        // Simple logging to stdout for CLI
        echo "[{$level}] {$message}\n";
    }
}

if (!function_exists('log_activity')) {
    function log_activity($message) {
        echo "[activity] {$message}\n";
    }
}

return true;