/** * Constructor initialises on the app root path. * * @param string $path * @param Request $request */ public function __construct($path, Request $request = null) { parent::__construct($path, $request); $this->setPath('composer', realpath(dirname(__DIR__) . '/../')); $this->setPath('app', realpath(dirname(__DIR__) . '/../app/')); $this->setUrl('app', '/bolt-public/'); }
/** * Constructor initialises on the app root path. * * @param string $path */ public function __construct($root, Request $request = null) { parent::__construct($root, $request); $this->setPath("composer", "vendor/bolt/bolt"); $this->setPath("apppath", $this->getPath('composer') . "/app"); $this->setPath("extensionspath", $this->getPath('app') . "/extensions"); $this->setPath("cache", $this->root . "/cache"); $this->setPath("config", $this->root . "/config"); $this->setPath("database", $this->root . "/database"); $this->setUrl("app", "/bolt-public/"); }
/** * Constructor initialises on the app root path. * * @param string $path * @param Request $request */ public function __construct($path, Request $request = null) { parent::__construct($path, $request); $this->setPath('composer', realpath(dirname(__DIR__) . '/../')); $this->setPath('app', realpath(dirname(__DIR__) . '/../app/')); $this->setPath('view', realpath(dirname(__DIR__) . '/../app/view')); $this->setPath('cache', 'app/cache'); $this->setPath('config', 'app/config'); $this->setPath('database', 'app/database'); $this->setPath('web', 'public'); $this->setPath('themebase', 'public/theme'); $this->setPath('files', 'public/files'); $this->setPath('view', 'public/bolt-public/view'); $this->setUrl('app', '/bolt-public/'); $this->setUrl('view', '/bolt-public/view/'); }
/** * Constructor initialises on the app root path. * * @param string $path */ public function __construct($loader, Request $request = null) { parent::__construct($loader, $request); $this->setPath("composer", $this->root); $this->setUrl("app", "/bolt-public/"); }