code: public function loadFromRegistry(Registry $registry)
      {
          foreach ($registry as $key => $serviceProvider) {
              $this->loadServiceProviderFactories($serviceProvider, $key);
          }
          foreach ($registry as $key => $serviceProvider) {
              $this->loadServiceProviderExtensions($serviceProvider, $key);
          }
      }
docs: Loads the registry into the container.
  
  @param Registry $registry