*/ error_reporting(-1); ini_set('display_errors', 1); define('APPPATH', '../application/'); define('BASEPATH', '../system/'); define('APP_NAMESPACE', 'App'); define('ENVIRONMENT', 'development'); use CodeIgniter\CLI\CLI; use Config\Autoload; require BASEPATH . 'CLI/CLI.php'; //-------------------------------------------------------------------- // Autoloader //-------------------------------------------------------------------- require_once BASEPATH . 'Autoloader/Autoloader.php'; require_once APPPATH . 'Config/Autoload.php'; $loader = new \CodeIgniter\Autoloader\Autoloader(); $loader->initialize(new Autoload()); $loader->register(); //-------------------------------------------------------------------- // The Class //-------------------------------------------------------------------- /** * Class Document * * Represents a single document, and provides a simple workflow to * read in a source file, generate the results, and then write it out: * * Example: * $doc = new Document(); * $doc->readSource('path/to/file.php') * ->build()
// Load environment settings from .env files // into $_SERVER and $_ENV require_once BASEPATH . 'Config/DotEnv.php'; $env = new \CodeIgniter\Config\DotEnv(APPPATH); $env->load(); unset($env); } /* * ------------------------------------------------------ * Get the DI Container ready for use * ------------------------------------------------------ */ require_once APPPATH . 'config/Services.php'; /* * ------------------------------------------------------ * Setup the autoloader * ------------------------------------------------------ */ // The autloader isn't initialized yet, so load the file manually. require_once BASEPATH . 'Autoloader/Autoloader.php'; require_once APPPATH . 'config/AutoloadConfig.php'; // The Autoloader class only handles namespaces // and "legacy" support. $loader = new \CodeIgniter\Autoloader\Autoloader(); $loader->initialize(new App\Config\AutoloadConfig()); // The register function will prepend // the psr4 loader. $loader->register(); //-------------------------------------------------------------------- // Load our TestCase //--------------------------------------------------------------------