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);
                };
            }
        }
    }
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);
                };
            }
        }
    }
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 ) ; } ; } } }
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
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 .