<?php $sapiName = php_sapi_name(); if (substr($sapiName, 0, 3) != 'cli') { die("Rebuild can be run only via CLI"); } include "bootstrap.php"; $app = new \Fox\Core\Application(); $app->runRebuild();
<?php require_once '../../bootstrap.php'; $app = new \Fox\Core\Application(); $app->run();
<?php $sapiName = php_sapi_name(); if (substr($sapiName, 0, 3) != 'cli') { die("Rebuild can be run only via CLI"); } include "bootstrap.php"; $app = new \Fox\Core\Application(); $app->runClearCache();
<?php include "bootstrap.php"; $app = new \Fox\Core\Application(); if (!empty($_GET['entryPoint'])) { $app->runEntryPoint($_GET['entryPoint']); exit; } $app->runClient();
<?php $sapiName = php_sapi_name(); if (substr($sapiName, 0, 3) != 'cli') { die("Cron can be run only via CLI"); } include "bootstrap.php"; $app = new \Fox\Core\Application(); $app->runCron();