/** * Prepare a Setup object * fill object attributes * * @param type $args */ public function __construct($args) { // if (!isset($args['name']) || !$args['name']) { Framework::error('app name required for setup'); } // if (!isset($args['mode']) || !$args['mode']) { Framework::error('app name required for setup'); } // if (!file_exists($args['bootstrap'])) { Framework::error('file not found: ' . $args['bootstrap']); } // $this->name = (string) $args['name']; // $this->mode = (string) $args['mode']; // $this->index = realpath($args['index']); // $this->bootstrap = realpath($args['bootstrap']); // $this->populate = isset($args['populate']) && is_callable($args['populate']) ? $args['populate'] : null; // define('__BASE__', dirname($this->bootstrap)); }