build-configs/build-config.php
2023-01-19 18:53:42 +00:00

21 lines
525 B
PHP

<?php
use OliverDaviesLtd\BuildConfiguration\Console\Command\BuildConfigurationCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Filesystem\Filesystem;
use Twig\Environment;
use Twig\Loader\FilesystemLoader;
require __DIR__ . '/vendor/autoload.php';
$filesystem = new Filesystem();
$twig = new Environment(new FilesystemLoader([__DIR__.'/templates']));
$application = new Application();
$application->addCommands([
new BuildConfigurationCommand($twig, $filesystem),
]);
$application->run();