23 lines
556 B
Plaintext
23 lines
556 B
Plaintext
|
#!/usr/bin/env php
|
||
|
<?php
|
||
|
require_once 'bootstrap.php';
|
||
|
|
||
|
use JeroenED\Framework\Kernel;
|
||
|
use JeroenED\Website\Command\RefreshCommand;
|
||
|
use Symfony\Component\Console\Application;
|
||
|
|
||
|
$application = new Application();
|
||
|
$kernel = new Kernel();
|
||
|
|
||
|
chdir(__DIR__);
|
||
|
$kernel->setProjectDir(getcwd());
|
||
|
$kernel->setConfigDir(getcwd() . '/config/');
|
||
|
$kernel->setCacheDir(getcwd() . '/cache/');
|
||
|
$kernel->setTemplateDir(getcwd() . '/templates/');
|
||
|
$kernel->parseDotEnv($kernel->getProjectDir() . '/.env');
|
||
|
|
||
|
$application->add(new RefreshCommand($kernel));
|
||
|
|
||
|
$application->run();
|
||
|
|