mirror of
https://github.com/jbcr/core.git
synced 2026-03-24 00:42:14 +01:00
20 lines
767 B
PHP
20 lines
767 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__.'/vendor/autoload.php';
|
|
|
|
$kernel = new \Bolt\Kernel('test', true);
|
|
$kernel->boot();
|
|
|
|
$application = new \Symfony\Bundle\FrameworkBundle\Console\Application($kernel);
|
|
$application->setAutoExit(false);
|
|
$application->setCatchExceptions(false);
|
|
|
|
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:drop --force --quiet'));
|
|
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:database:create --quiet'));
|
|
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:schema:create --quiet'));
|
|
$application->run(new \Symfony\Component\Console\Input\StringInput('doctrine:fixtures:load --no-interaction --group=without-images'));
|
|
|
|
$kernel->shutdown();
|