require 'bootstrap.php'; use LP\App; /** * Use to create and return a single instance of the application. * Class BatchProcessor * @package LP */ class BatchProcessor { /** * @var string Specify the full path to the configuration file. */ public static $configFile = ''; /** * @var null Holds the single instance of the application */ private static $app = null; /** * @return App Return a single instance of App */ public static function app() { if (static::$app === null) { static::$app = new App(static::$configFile); } return static::$app; } } // Specify the configuration file BatchProcessor::$configFile = dirname(__FILE__) . DS . 'config.php'; BatchProcessor::app()->run();