55namespace Tmi \TranslationBundle \DependencyInjection ;
66
77use Doctrine \DBAL \Types \Exception \TypesException ;
8- use Exception ;
98use Doctrine \DBAL \Types \Type ;
109use Symfony \Component \Config \FileLocator ;
1110use Symfony \Component \DependencyInjection \ContainerBuilder ;
@@ -18,12 +17,13 @@ final class TmiTranslationExtension extends Extension implements PrependExtensio
1817{
1918 /**
2019 * @param array<array<string, mixed>> $configs
21- * @throws Exception|\Doctrine\DBAL\Exception|TypesException
20+ *
21+ * @throws \Exception|\Doctrine\DBAL\Exception|TypesException
2222 */
2323 public function load (array $ configs , ContainerBuilder $ container ): void
2424 {
2525 $ configuration = new Configuration ();
26- $ config = $ this ->processConfiguration ($ configuration , $ configs );
26+ $ config = $ this ->processConfiguration ($ configuration , $ configs );
2727
2828 // Set configuration into params
2929 $ rootName = 'tmi_translation ' ;
@@ -35,7 +35,7 @@ public function load(array $configs, ContainerBuilder $container): void
3535 Type::addType (TuuidType::NAME , TuuidType::class);
3636 }
3737
38- $ loader = new Loader \YamlFileLoader ($ container , new FileLocator (__DIR__ . '/../Resources/config ' ));
38+ $ loader = new Loader \YamlFileLoader ($ container , new FileLocator (__DIR__ . '/../Resources/config ' ));
3939 $ loader ->load ('services.yaml ' );
4040 }
4141
@@ -45,12 +45,13 @@ public function prepend(ContainerBuilder $container): void
4545
4646 /**
4747 * Add config keys as parameters.
48+ *
4849 * @param array<string, mixed> $params
4950 */
5051 private function setConfigAsParameters (ContainerBuilder $ container , array $ params , string $ parent ): void
5152 {
5253 foreach ($ params as $ key => $ value ) {
53- $ name = $ parent . '. ' . $ key ;
54+ $ name = $ parent. '. ' . $ key ;
5455 $ container ->setParameter ($ name , $ value );
5556
5657 if (is_array ($ value )) {
0 commit comments