Gets the 'foo' service.
protected function getFooService() {
$a = $this
->get('foo.baz');
$instance = call_user_func(array(
'FooClass',
'getInstance',
), 'foo', $a, array(
$this
->getParameter('foo') => 'foo is ' . $this
->getParameter('foo'),
'bar' => $this
->getParameter('foo'),
), true, $this);
$instance
->setBar($this
->get('bar'));
$instance
->initialize();
$instance->foo = 'bar';
$instance->moo = $a;
sc_configure($instance);
return $instance;
}