original_string: protected function registerServices()
      {
          foreach (self::$diMap as $serviceKey => $serviceClass) {
              if (\is_int($serviceKey)) {
                  $this->register(new $serviceClass);
              } else {
                  $this[$serviceKey] = function ($c) use ($serviceClass) {
                      return new $serviceClass($c);
                  };
              }
          }
      }
code: protected function registerServices()
      {
          foreach (self::$diMap as $serviceKey => $serviceClass) {
              if (\is_int($serviceKey)) {
                  $this->register(new $serviceClass);
              } else {
                  $this[$serviceKey] = function ($c) use ($serviceClass) {
                      return new $serviceClass($c);
                  };
              }
          }
      }
code_tokens: protected function registerServices ( ) { foreach ( self :: $ diMap as $ serviceKey => $ serviceClass ) { if ( \ is_int ( $ serviceKey ) ) { $ this -> register ( new $ serviceClass ) ; } else { $ this [ $ serviceKey ] = function ( $ c ) use ( $ serviceClass ) { return new $ serviceClass ( $ c ) ; } ; } } }
docstring: Register all services
  Services are defined in the diMap. They can either only the class
  of a Service Provider or a pair of serviceKey => serviceClass that
  gets directly mapped into the container.
  
  @return void
docstring_tokens: Register all services Services are defined in the diMap . They can either only the class of a Service Provider or a pair of serviceKey = > serviceClass that gets directly mapped into the container .