Skip to content

Commit ef41dc9

Browse files
committed
Change the extension of configuration from yml to yaml
1 parent c30c6d2 commit ef41dc9

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

src/DependencyInjection/SidusEncryptionExtension.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,28 @@ class SidusEncryptionExtension extends Extension implements PrependExtensionInte
3131
public function load(array $configs, ContainerBuilder $container): void
3232
{
3333
$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/services'));
34-
$loader->load('encryption.yml');
35-
$loader->load('doctrine.yml');
36-
$loader->load('registry.yml');
37-
$loader->load('security.yml');
38-
$loader->load('session.yml');
39-
34+
$loader->load('encryption.yaml');
35+
$loader->load('doctrine.yaml');
36+
$loader->load('registry.yaml');
37+
$loader->load('security.yaml');
38+
$loader->load('session.yaml');
39+
4040
$configuration = new Configuration();
4141
$config = $this->processConfiguration($configuration, $configs);
42-
42+
4343
$registry = $container->getDefinition(EncryptionManagerRegistry::class);
4444
$registry->replaceArgument('$defaultCode', $config['preferred_adapter']);
4545
$container->setParameter('sidus.encryption.throw_exceptions', $config['throw_exception']);
4646
}
4747

4848
public function prepend(ContainerBuilder $container)
4949
{
50-
$doctrineConfiguration = $container->getExtensionConfig('doctrine');
51-
50+
$doctrineConfiguration = $container->getExtensionConfig('doctrine')[0];
51+
5252
if (empty($doctrineConfiguration['dbal'])) {
5353
$doctrineConfiguration['dbal'] = [];
5454
}
55-
55+
5656
if (empty($doctrineConfiguration['dbal']['types'])) {
5757
$doctrineConfiguration['dbal']['types'] = [];
5858
}

src/Resources/config/services/doctrine.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
services:
22
doctrine.dbal.connection_factory:
33
class: Sidus\EncryptionBundle\Doctrine\Connection\Factory\ConnectionFactory
4-
alias: Sidus\EncryptionBundle\Doctrine\Connection\Factory\ConnectionFactory
54
autowire: true
65
autoconfigure: true
76
arguments:

0 commit comments

Comments
 (0)