diff --git a/build-config.php b/build-config.php index 62bca18..e138419 100644 --- a/build-config.php +++ b/build-config.php @@ -1,8 +1,14 @@ addCommands([ + new BuildConfigurationCommand(), +]); + $app->run(); diff --git a/composer.json b/composer.json index e270663..82d290e 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,16 @@ { "require": { "twig/twig": "^3.5", - "symfony/console": "^6.2" + "symfony/console": "^6.2", + "symfony/yaml": "^6.2" }, "require-dev": { - "humbug/box": "^4.2" + "humbug/box": "^4.2", + "symfony/var-dumper": "^6.2" + }, + "autoload": { + "psr-4": { + "OliverDaviesLtd\\BuildConfiguration\\": "src/" + } } } diff --git a/composer.lock b/composer.lock index 9d680f9..b08b800 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "33bee317bc6e480792bb6770639a652b", + "content-hash": "10bdf6712c1d4ee4e01f212c41080a07", "packages": [ { "name": "psr/container", @@ -723,6 +723,80 @@ ], "time": "2022-12-14T16:11:27+00:00" }, + { + "name": "symfony/yaml", + "version": "v6.2.2", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "6ed8243aa5f2cb5a57009f826b5e7fb3c4200cf3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/6ed8243aa5f2cb5a57009f826b5e7fb3c4200cf3", + "reference": "6ed8243aa5f2cb5a57009f826b5e7fb3c4200cf3", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<5.4" + }, + "require-dev": { + "symfony/console": "^5.4|^6.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v6.2.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-12-14T16:11:27+00:00" + }, { "name": "twig/twig", "version": "v3.5.0", diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php new file mode 100644 index 0000000..79253d6 --- /dev/null +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -0,0 +1,34 @@ +info("Building configuration for {$buildYaml['name']}."); + + // Parse its contents. + // Generate the appropriate configuration files. + // + return Command::SUCCESS; + } +} +