website/console

23 lines
556 B
Plaintext
Raw Normal View History

2021-08-05 13:51:44 +02:00
#!/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();