8000 cs · symfony/symfony@bac5885 · GitHub
[go: up one dir, main page]

Skip to content

Commit bac5885

Browse files
committed
cs
1 parent 13335f1 commit bac5885

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ConfigBuilderCacheWarmer.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,15 @@
1515
use Symfony\Bundle\FrameworkBundle\Command\BuildDebugContainerTrait;
1616
use Symfony\Component\Config\Builder\ConfigBuilderGenerator;
1717
use Symfony\Component\Config\Builder\ConfigBuilderGeneratorInterface;
18+
use Symfony\Component\Config\Definition\ConfigurationInterface;
19+
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
1820
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
1921
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
20-
use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface;
2122
use Symfony\Component\HttpKernel\KernelInterface;
2223
use Symfony\Contracts\Service\ServiceSubscriberInterface;
23-
use Symfony\Contracts\Translation\TranslatorInterface;
24-
use Symfony\Component\Config\Definition\ConfigurationInterface;
25-
use Symfony\Component\Config\Definition\Dumper\XmlReferenceDumper;
26-
use Symfony\Component\Config\Definition\Dumper\YamlReferenceDumper;
27-
use Symfony\Component\Console\Exception\InvalidArgumentException;
28-
use Symfony\Component\Console\Input\InputArgument;
29-
use Symfony\Component\Console\Input\InputInterface;
30-
use Symfony\Component\Console\Input\InputOption;
31-
use Symfony\Component\Console\Output\OutputInterface;
32-
use Symfony\Component\Console\Style\SymfonyStyle;
33-
use Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface;
34-
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
3524

3625
/**
37-
* Generate all the config builders
26+
* Generate all the config builders.
3827
*
3928
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
4029
*/
@@ -68,14 +57,14 @@ public function warmUp(string $cacheDir)
6857
}, $this->kernel->getBundles());
6958

7059
foreach ($extensions as $extension) {
71-
if ($extension === null) {
60+
if (null === $extension) {
7261
continue;
7362
}
7463

7564
try {
7665
$this->dumpExtension($extension, $generator);
7766
} catch (\Throwable $e) {
78-
throw new \RuntimeException(sprintf('Failed to generate ConfigBuilder for extension "%s".', get_class($extension)), 0, $e);
67+
throw new \RuntimeException(sprintf('Failed to generate ConfigBuilder for extension "%s".', \get_class($extension)), 0, $e);
7968
}
8069
}
8170

src/Symfony/Bundle/FrameworkBundle/Resources/config/config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@
2222
->tag('kernel.cache_warmer')
2323
;
2424
};
25-

0 commit comments

Comments
 (0)
0