From 574b7c7b2da4d21d7039fa15e2164eb092e432f9 Mon Sep 17 00:00:00 2001 From: COil Date: Wed, 8 Jan 2025 22:18:16 +0100 Subject: [PATCH] chore: user fluent API in config file --- config/services.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config/services.php b/config/services.php index a942b6e..0d606d0 100644 --- a/config/services.php +++ b/config/services.php @@ -21,22 +21,23 @@ use Symfony\Component\HttpKernel\Kernel; return static function (ContainerConfigurator $containerConfigurator): void { + // Parameters —————————————————————————————————————————————————————————————— $parameters = $containerConfigurator->parameters(); // System parameters: https://symfony.com/doc/current/performance.html#dump-the-service-container-into-a-single-file $parameters->set('.container.dumper.inline_factories', true); // Application parameters —————————————————————————————————————————————————— - $parameters->set('brand', 'MicroSymfony'); - $parameters->set('brand_html', 'MicroSymfony 🎶'); - $parameters->set('brand_emoji', '🎶️'); - $parameters->set('website', 'https://github.com/strangebuzz/MicroSymfony'); - $parameters->set('version', '1.0.0'); $sfVersion = substr(Kernel::VERSION, 0, 3); // minor Symfony version $description = <<$sfVersion application template on steroids, ready to use. DESCRIPTION; - $parameters->set('description', $description); + $parameters->set('brand', 'MicroSymfony') + ->set('brand_html', 'MicroSymfony 🎶') + ->set('brand_emoji', '🎶️') + ->set('website', 'https://github.com/strangebuzz/MicroSymfony') + ->set('version', '1.0.0') + ->set('description', $description); // Services ———————————————————————————————————————————————————————————————— $services = $containerConfigurator->services();