Example #1
0
<?php

require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
if (!class_exists('canis\\base\\ApplicationEngine')) {
    throw new \Exception('Canis core libraries have not been installed. Have you ran `composer install`?');
}
canis\base\ApplicationEngine::runWebApplication(dirname(__DIR__), ['setupExists' => file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'setup.php')]);
Example #2
0
<?php

define('CANIS_SETUP', true);
require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
if (!class_exists('canis\\base\\ApplicationEngine')) {
    throw new \Exception('Canis core libraries have not been installed. Have you ran `composer install`?');
}
canis\base\ApplicationEngine::runSetupApplication(dirname(__DIR__));