Skip to content

Commit 86ee2b3

Browse files
[DI] Fix private-by-default BC layer
1 parent b3af3fe commit 86ee2b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ public function testEventDispatcherService()
953953
$this->loadFromFile($container, 'default_config');
954954
$container
955955
->register('foo', \stdClass::class)
956+
->setPublic(true)
956957
->setProperty('dispatcher', new Reference('event_dispatcher'));
957958
$container->compile();
958959
$this->assertInstanceOf(EventDispatcherInterface::class, $container->get('foo')->dispatcher);

0 commit comments

Comments
 (0)