1234567891011121314151617181920212223242526272829303132 |
- <?php
- ini_set('display_errors', 0);
- error_reporting(0);
- define('APPLICATION_PATH', realpath(__DIR__));
- set_include_path(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'library');
- require_once 'Cube/Application.php';
- $application = Cube\Application::init(array_merge(
- include 'config/global.config.php',
- include 'config/cache.config.php'));
- $application->bootstrap();
- $request = new \Cube\Controller\Request();
- $command = $request->getParam('command', null);
- $service = new \Ppb\Service\Cron();
- $service->run($command);
|