original_string: public static function boot(ICms $cms)
      {
          $iocContainer = $cms->getIocContainer();
  
          $iocContainer->bind(IIocContainer::SCOPE_SINGLETON, IContentGroupRepository::class, DbContentGroupRepository::class);
          $iocContainer->bind(IIocContainer::SCOPE_SINGLETON, ContentLoaderService::class, ContentLoaderService::class);
  
          $iocContainer->bindCallback(
              IIocContainer::SCOPE_SINGLETON,
              ContentConfig::class,
              function () use ($cms) : ContentConfig {
                  $definition = new ContentConfigDefinition();
  
                  static::defineConfig($definition);
  
                  return $definition->finalize();
              }
          );
      }
code: public static function boot(ICms $cms)
      {
          $iocContainer = $cms->getIocContainer();
  
          $iocContainer->bind(IIocContainer::SCOPE_SINGLETON, IContentGroupRepository::class, DbContentGroupRepository::class);
          $iocContainer->bind(IIocContainer::SCOPE_SINGLETON, ContentLoaderService::class, ContentLoaderService::class);
  
          $iocContainer->bindCallback(
              IIocContainer::SCOPE_SINGLETON,
              ContentConfig::class,
              function () use ($cms) : ContentConfig {
                  $definition = new ContentConfigDefinition();
  
                  static::defineConfig($definition);
  
                  return $definition->finalize();
              }
          );
      }
code_tokens: public static function boot ( ICms $ cms ) { $ iocContainer = $ cms -> getIocContainer ( ) ; $ iocContainer -> bind ( IIocContainer :: SCOPE_SINGLETON , IContentGroupRepository :: class , DbContentGroupRepository :: class ) ; $ iocContainer -> bind ( IIocContainer :: SCOPE_SINGLETON , ContentLoaderService :: class , ContentLoaderService :: class ) ; $ iocContainer -> bindCallback ( IIocContainer :: SCOPE_SINGLETON , ContentConfig :: class , function ( ) use ( $ cms ) : ContentConfig { $ definition = new ContentConfigDefinition ( ) ; static :: defineConfig ( $ definition ) ; return $ definition -> finalize ( ) ; } ) ; }
docstring: Boots and configures the package resources and services.
  
  @param ICms $cms
  
  @return void
docstring_tokens: Boots and configures the package resources and services .