|
11 | 11 |
|
12 | 12 | namespace Symfony\Component\DependencyInjection\Loader\Configurator; |
13 | 13 |
|
| 14 | +use Psr\EventDispatcher\EventDispatcherInterface as PsrEventDispatcherInterface; |
14 | 15 | use Symfony\Bundle\FrameworkBundle\CacheWarmer\ConfigBuilderCacheWarmer; |
15 | 16 | use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; |
| 17 | +use Symfony\Component\Clock\ClockInterface; |
| 18 | +use Symfony\Component\Clock\NativeClock; |
16 | 19 | use Symfony\Component\Config\Loader\LoaderInterface; |
17 | 20 | use Symfony\Component\Config\Resource\SelfCheckingResourceChecker; |
18 | 21 | use Symfony\Component\Config\ResourceCheckerConfigCacheFactory; |
@@ -77,6 +80,7 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : [] |
77 | 80 | ->tag('event_dispatcher.dispatcher', ['name' => 'event_dispatcher']) |
78 | 81 | ->alias(EventDispatcherInterfaceComponentAlias::class, 'event_dispatcher') |
79 | 82 | ->alias(EventDispatcherInterface::class, 'event_dispatcher') |
| 83 | + ->alias(PsrEventDispatcherInterface::class, 'event_dispatcher') |
80 | 84 |
|
81 | 85 | ->set('http_kernel', HttpKernel::class) |
82 | 86 | ->public() |
@@ -224,6 +228,9 @@ class_exists(WorkflowEvents::class) ? WorkflowEvents::ALIASES : [] |
224 | 228 | ->args([service(KernelInterface::class), service('logger')->nullOnInvalid()]) |
225 | 229 | ->tag('kernel.cache_warmer') |
226 | 230 |
|
| 231 | + ->set('clock', NativeClock::class) |
| 232 | + ->alias(ClockInterface::class, 'clock') |
| 233 | + |
227 | 234 | // register as abstract and excluded, aka not-autowirable types |
228 | 235 | ->set(LoaderInterface::class)->abstract()->tag('container.excluded') |
229 | 236 | ->set(Request::class)->abstract()->tag('container.excluded') |
|
0 commit comments