$container->
compile();
// Bar is found in the compiled container
$service_ids =
$container->
getServiceIds();
$this->
assertContains('bar',
$service_ids);
$dumper =
new PhpDumper($container);
$dump =
$dumper->
dump(['class' => 'Symfony_DI_PhpDumper_AliasesCanBeFoundInTheDumpedContainer'
]);
eval('?>'.
$dump);
$container =
new \
Symfony_DI_PhpDumper_AliasesCanBeFoundInTheDumpedContainer();
// Bar should still be found in the compiled container
$service_ids =
$container->
getServiceIds();
$this->
assertContains('bar',
$service_ids);
} /**
* @group legacy
*/
public function testWitherAnnotation() {