Gets the 'bar' service.
This service is shared. This method always returns the same instance of the service.
protected function getBarService() {
$this->services['bar'] = $instance = new \FooClass('foo', $this
->get('foo.baz'), $this
->getParameter('foo_bar'));
$this
->get('foo.baz')
->configure($instance);
return $instance;
}