mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 03:15:34 +01:00
Refactor
This commit is contained in:
parent
31614e0f58
commit
014b6dabeb
2 changed files with 24 additions and 12 deletions
|
@ -2,13 +2,19 @@
|
|||
|
||||
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';
|
||||
|
||||
$app = new Application();
|
||||
$filesystem = new Filesystem();
|
||||
$twig = new Environment(new FilesystemLoader([__DIR__.'/templates']));
|
||||
|
||||
$app->addCommands([
|
||||
new BuildConfigurationCommand(),
|
||||
$application = new Application();
|
||||
|
||||
$application->addCommands([
|
||||
new BuildConfigurationCommand($twig, $filesystem),
|
||||
]);
|
||||
|
||||
$app->run();
|
||||
$application->run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue