From 6be012600ed1c75e624a1a606c53f88d27699fe5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Mon, 11 Dec 2023 04:00:19 +0100 Subject: [PATCH 1/1] Update address entries Cleanup personnal infos --- DependencyInjection/Configuration.php | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index ae8a34f..d66631a 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -34,19 +34,19 @@ class Configuration implements ConfigurationInterface { //Set defaults $defaults = [ 'contact' => [ - 'name' => 'Rapsys blog', - 'mail' => 'blog@rapsys.eu' + 'address' => 'john.doe@example.com', + 'name' => 'John Doe' ], 'copy' => [ 'by' => 'Rapsys', - 'link' => 'https://rapsys.eu', + 'link' => 'https://example.com', 'long' => 'All rights reserved', 'short' => 'Copyright 2019-2023', - 'title' => 'By Rapsys' + 'title' => 'By Raphaël' ], - 'donate' => 'https://paypal.me/milongaraphael', + 'donate' => '', 'facebook' => [ - 'apps' => [ 3728770287223690 ], + 'apps' => [], 'height' => 630, 'width' => 1200 ], @@ -96,21 +96,20 @@ class Configuration implements ConfigurationInterface { //XXX: see https://github.com/symfony/symfony/issues/7405 //TODO: copy to '%rapsys_user.languages%', 'languages' => [ - 'en_gb' => 'English', - 'fr_fr' => 'French' + 'en_gb' => 'English' ], //TODO: copy to '%kernel.default_locale%' - 'locale' => 'fr_fr', + 'locale' => 'en_gb', //TODO: copy to '%kernel.translator.fallbacks%' - 'locales' => [ 'fr_fr', 'en_gb' ], + 'locales' => [ 'en_gb' ], 'logo' => [ 'png' => '@RapsysBlog/png/logo.png', 'svg' => '@RapsysBlog/svg/logo.svg', - 'alt' => 'Rapsys\' dev log logo' + 'alt' => 'John Doe\'s blog logo' ], 'path' => is_link(($prefix = is_dir('public') ? './public/' : './').($link = 'bundles/'.str_replace('_', '', $alias))) && is_dir(realpath($prefix.$link)) || is_dir($prefix.$link) ? $link : dirname(__DIR__).'/Resources/public', 'root' => 'rapsys_blog', - 'title' => 'Rapsys\' dev log', + 'title' => 'John Doe\'s blog', ]; //Here we define the parameters that are allowed to configure the bundle. @@ -127,8 +126,8 @@ class Configuration implements ConfigurationInterface { ->arrayNode('contact') ->addDefaultsIfNotSet() ->children() + ->scalarNode('address')->cannotBeEmpty()->defaultValue($defaults['contact']['address'])->end() ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end() - ->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end() ->end() ->end() ->arrayNode('copy') -- 2.41.1