|
13 | 13 |
|
14 | 14 | use Symfony\Bundle\FrameworkBundle\CacheWarmer\ConfigBuilderCacheWarmer;
|
15 | 15 | use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
|
| 16 | +use Symfony\Component\Config\Loader\LoaderInterface; |
16 | 17 | use Symfony\Component\Config\Resource\SelfCheckingResourceChecker;
|
17 | 18 | use Symfony\Component\Config\ResourceCheckerConfigCacheFactory;
|
18 | 19 | use Symfony\Component\Console\ConsoleEvents;
|
|
26 | 27 | use Symfony\Component\EventDispatcher\EventDispatcherInterface as EventDispatcherInterfaceComponentAlias;
|
27 | 28 | use Symfony\Component\Filesystem\Filesystem;
|
28 | 29 | use Symfony\Component\Form\FormEvents;
|
| 30 | +use Symfony\Component\HttpFoundation\Request; |
29 | 31 | use Symfony\Component\HttpFoundation\RequestStack;
|
| 32 | +use Symfony\Component\HttpFoundation\Response; |
| 33 | +use Symfony\Component\HttpFoundation\Session\SessionInterface; |
30 | 34 | use Symfony\Component\HttpFoundation\UrlHelper;
|
31 | 35 | use Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer;
|
32 | 36 | use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate;
|
@@ -218,5 +222,11 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : []
|
218 | 222 | ->set('config_builder.warmer', ConfigBuilderCacheWarmer::class)
|
219 | 223 | ->args([service(KernelInterface::class), service('logger')->nullOnInvalid()])
|
220 | 224 | ->tag('kernel.cache_warmer')
|
| 225 | + |
| 226 | + // register as abstract and excluded, aka not-autowirable types |
| 227 | + ->set(LoaderInterface::class)->abstract()->tag('container.excluded') |
| 228 | + ->set(Request::class)->abstract()->tag('container.excluded') |
| 229 | + ->set(Response::class)->abstract()->tag('container.excluded') |
| 230 | + ->set(SessionInterface::class)->abstract()->tag('container.excluded') |
221 | 231 | ;
|
222 | 232 | };
|
0 commit comments