mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 11:25:33 +01:00
Refactor
This commit is contained in:
parent
4e885eea91
commit
a78d53a301
3 changed files with 7 additions and 4 deletions
|
@ -1,20 +0,0 @@
|
|||
<?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();
|
Loading…
Add table
Add a link
Reference in a new issue