Registers a service definition.
This methods allows for simple registration of service definition with a fluid interface.
@api
string $id The service identifier:
string $class The service class:
Definition A Definition instance
public function register($id, $class = null) {
return $this
->setDefinition(strtolower($id), new Definition($class));
}