getDefaultParameters())); } /** * Gets the 'foo' service. * * This service is shared. * This method always returns the same instance of the service. * * @return FooClass A FooClass instance. */ protected function getFooService() { $this->services['foo'] = $instance = new \FooClass(); $instance->setBar('someValue'); return $instance; } /** * Gets the default parameters. * * @return array An array of the default parameters */ protected function getDefaultParameters() { return array( 'cla' => 'Fo', 'ss' => 'Class', ); } }