Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symfony deprecation #466

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/DependencyInjection/NucleosAllInklExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use Nucleos\AllInklBundle\Mailer\SymfonyMailer;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Extension\Extension;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

final class NucleosAllInklExtension extends Extension
{
Expand All @@ -33,12 +33,12 @@
$config = $this->processConfiguration($configuration, $configs);

$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('block.php');

Check warning on line 36 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $configuration = new Configuration(); $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); - $loader->load('block.php'); + $loader->load('commands.php'); $loader->load('services.php'); $this->configureMail($container, $config);
$loader->load('commands.php');

Check warning on line 37 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $config = $this->processConfiguration($configuration, $configs); $loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('block.php'); - $loader->load('commands.php'); + $loader->load('services.php'); $this->configureMail($container, $config); $this->configureCheck($container, $config);
$loader->load('services.php');

$this->configureMail($container, $config);

Check warning on line 40 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $loader->load('block.php'); $loader->load('commands.php'); $loader->load('services.php'); - $this->configureMail($container, $config); + $this->configureCheck($container, $config); $this->configureApi($container, $config); }
$this->configureCheck($container, $config);

Check warning on line 41 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ $loader->load('commands.php'); $loader->load('services.php'); $this->configureMail($container, $config); - $this->configureCheck($container, $config); + $this->configureApi($container, $config); } /**
$this->configureApi($container, $config);
}

Expand All @@ -56,7 +56,7 @@
*/
private function configureMail(ContainerBuilder $container, array $config): void
{
if (!\array_key_exists('mail', $config)) {

Check warning on line 59 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "LogicalNot": @@ @@ */ private function configureMail(ContainerBuilder $container, array $config): void { - if (!\array_key_exists('mail', $config)) { + if (\array_key_exists('mail', $config)) { return; } $container->getDefinition(SymfonyMailer::class)->replaceArgument(2, ['warning' => $config['mail']]);
return;
}

Expand All @@ -72,7 +72,7 @@
*/
private function configureCheck(ContainerBuilder $container, array $config): void
{
$container->setParameter('nucleos_allinkl.check.warning', $config['check']['warning']);

Check warning on line 75 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ */ private function configureCheck(ContainerBuilder $container, array $config): void { - $container->setParameter('nucleos_allinkl.check.warning', $config['check']['warning']); + $container->setParameter('nucleos_allinkl.check.accounts', $config['check']['accounts']); } }
$container->setParameter('nucleos_allinkl.check.accounts', $config['check']['accounts']);

Check warning on line 76 in src/DependencyInjection/NucleosAllInklExtension.php

View workflow job for this annotation

GitHub Actions / run / Mutation Tests (8.3)

Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ private function configureCheck(ContainerBuilder $container, array $config): void { $container->setParameter('nucleos_allinkl.check.warning', $config['check']['warning']); - $container->setParameter('nucleos_allinkl.check.accounts', $config['check']['accounts']); + } }
}
}
Loading