|
15 | 15 | use Symfony\Bundle\FrameworkBundle\Command\BuildDebugContainerTrait;
|
16 | 16 | use Symfony\Component\Config\Builder\ConfigBuilderGenerator;
|
17 | 17 | use Symfony\Component\Config\Builder\ConfigBuilderGeneratorInterface;
|
| 18 | +use Symfony\Component\Config\Definition\ConfigurationInterface; |
| 19 | +use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; |
18 | 20 | use Symfony\Component\HttpKernel\Bundle\BundleInterface;
|
19 | 21 | use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
|
20 |
| -use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface; |
21 | 22 | use Symfony\Component\HttpKernel\KernelInterface;
|
22 | 23 | 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; |
35 | 24 |
|
36 | 25 | /**
|
37 |
| - * Generate all the config builders |
| 26 | + * Generate all the config builders. |
38 | 27 | *
|
39 | 28 | * @author Tobias Nyholm <tobias.nyholm@gmail.com>
|
40 | 29 | */
|
@@ -68,14 +57,14 @@ public function warmUp(string $cacheDir)
|
68 | 57 | }, $this->kernel->getBundles());
|
69 | 58 |
|
70 | 59 | foreach ($extensions as $extension) {
|
71 |
| - if ($extension === null) { |
| 60 | + if (null === $extension) { |
72 | 61 | continue;
|
73 | 62 | }
|
74 | 63 |
|
75 | 64 | try {
|
76 | 65 | $this->dumpExtension($extension, $generator);
|
77 | 66 | } 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); |
79 | 68 | }
|
80 | 69 | }
|
81 | 70 |
|
|
0 commit comments