2015-11-27 18:56:28 +00:00
|
|
|
<?php // @codingStandardsIgnoreFile
|
2015-11-27 18:45:21 +00:00
|
|
|
|
2015-10-09 15:39:56 +00:00
|
|
|
// load dependencies
|
2016-01-07 02:00:21 +00:00
|
|
|
if (is_file(__DIR__ . '/vendor/autoload.php')) {
|
2015-11-27 18:49:53 +00:00
|
|
|
// composer root package
|
|
|
|
require_once(__DIR__ . '/vendor/autoload.php');
|
2016-01-07 02:00:21 +00:00
|
|
|
} elseif (is_file(__DIR__ . '/../../../vendor/autoload.php')) {
|
2015-11-27 18:49:53 +00:00
|
|
|
// composer dependency package
|
|
|
|
require_once(__DIR__ . '/../../../vendor/autoload.php');
|
2015-11-27 04:16:06 +00:00
|
|
|
} else {
|
2015-11-27 18:49:53 +00:00
|
|
|
die("Cannot find `vendor/autoload.php`. Run `composer install`.");
|
2015-11-27 04:16:06 +00:00
|
|
|
}
|
2015-10-09 15:39:56 +00:00
|
|
|
|
|
|
|
// instance Pico
|
2015-10-01 13:05:50 +00:00
|
|
|
$pico = new Pico(
|
2015-10-09 15:39:56 +00:00
|
|
|
__DIR__, // root dir
|
|
|
|
'config/', // config dir
|
|
|
|
'plugins/', // plugins dir
|
|
|
|
'themes/' // themes dir
|
2015-10-01 13:05:50 +00:00
|
|
|
);
|
2015-10-09 15:39:56 +00:00
|
|
|
|
|
|
|
// override configuration?
|
2015-11-27 18:40:26 +00:00
|
|
|
//$pico->setConfig(array());
|
2015-10-09 15:39:56 +00:00
|
|
|
|
|
|
|
// run application
|
2015-10-01 13:05:50 +00:00
|
|
|
echo $pico->run();
|