$container =
new ContainerBuilder();
$container ->
register('app.my_service', \stdClass::
class) ->
addArgument(new Reference('app.my_service2'
));
$this->
process($container);
} private function process(ContainerBuilder
$container) { $pass =
new CheckExceptionOnInvalidReferenceBehaviorPass();
$pass->
process($container);
}}