code: protected function dumpContainer(ConfigCache $cache, ContainerBuilder $container, $class, $baseClass)
      {
          $dumper  = new PhpDumper($container);
          $content = $dumper->dump(array('class' => $class, 'base_class' => $baseClass));
  
          $cache->write($content, $container->getResources());
      }
docs: Dumps the service container to PHP code in the cache.
  
  @param ConfigCache      $cache     The config cache
  @param ContainerBuilder $container The service container
  @param string           $class     The name of the class to generate
  @param string           $baseClass The name of the container's base class