original_string: public function prepend(ContainerBuilder $container)
      {
          $configs = $container->getExtensionConfig($this->getAlias());
          $config = $this->processConfiguration(new Configuration(), $configs);
  
          $parameters = $this->getParameters($config);
          foreach ($parameters as $key => $value) {
              $container->setParameter($key, $value);
          }
  
          $resolvableEntities = [
              'Opifer\EavBundle\Model\AttributeInterface' => $config['attribute_class'],
              'Opifer\EavBundle\Model\OptionInterface'    => $config['option_class'],
              'Opifer\EavBundle\Model\SchemaInterface'  => $config['schema_class'],
              'Opifer\EavBundle\Model\ValueSetInterface'  => $config['valueset_class'],
          ];
  
          if ($config['nestable_class'] != '') {
              $resolvableEntities['Opifer\EavBundle\Model\Nestable'] = $config['nestable_class'];
          }
  
          if ($config['media_class'] != '') {
              $resolvableEntities['Opifer\EavBundle\Model\MediaInterface'] = $config['media_class'];
          }
  
          foreach ($container->getExtensions() as $name => $extension) {
              switch ($name) {
                  case 'doctrine':
                      $container->prependExtensionConfig($name,  [
                          'orm' => [
                              'resolve_target_entities' => $resolvableEntities,
                          ],
                      ]);
                      break;
              }
          }
      }
code: public function prepend(ContainerBuilder $container)
      {
          $configs = $container->getExtensionConfig($this->getAlias());
          $config = $this->processConfiguration(new Configuration(), $configs);
  
          $parameters = $this->getParameters($config);
          foreach ($parameters as $key => $value) {
              $container->setParameter($key, $value);
          }
  
          $resolvableEntities = [
              'Opifer\EavBundle\Model\AttributeInterface' => $config['attribute_class'],
              'Opifer\EavBundle\Model\OptionInterface'    => $config['option_class'],
              'Opifer\EavBundle\Model\SchemaInterface'  => $config['schema_class'],
              'Opifer\EavBundle\Model\ValueSetInterface'  => $config['valueset_class'],
          ];
  
          if ($config['nestable_class'] != '') {
              $resolvableEntities['Opifer\EavBundle\Model\Nestable'] = $config['nestable_class'];
          }
  
          if ($config['media_class'] != '') {
              $resolvableEntities['Opifer\EavBundle\Model\MediaInterface'] = $config['media_class'];
          }
  
          foreach ($container->getExtensions() as $name => $extension) {
              switch ($name) {
                  case 'doctrine':
                      $container->prependExtensionConfig($name,  [
                          'orm' => [
                              'resolve_target_entities' => $resolvableEntities,
                          ],
                      ]);
                      break;
              }
          }
      }
code_tokens: public function prepend ( ContainerBuilder $ container ) { $ configs = $ container -> getExtensionConfig ( $ this -> getAlias ( ) ) ; $ config = $ this -> processConfiguration ( new Configuration ( ) , $ configs ) ; $ parameters = $ this -> getParameters ( $ config ) ; foreach ( $ parameters as $ key => $ value ) { $ container -> setParameter ( $ key , $ value ) ; } $ resolvableEntities = [ 'Opifer\EavBundle\Model\AttributeInterface' => $ config [ 'attribute_class' ] , 'Opifer\EavBundle\Model\OptionInterface' => $ config [ 'option_class' ] , 'Opifer\EavBundle\Model\SchemaInterface' => $ config [ 'schema_class' ] , 'Opifer\EavBundle\Model\ValueSetInterface' => $ config [ 'valueset_class' ] , ] ; if ( $ config [ 'nestable_class' ] != '' ) { $ resolvableEntities [ 'Opifer\EavBundle\Model\Nestable' ] = $ config [ 'nestable_class' ] ; } if ( $ config [ 'media_class' ] != '' ) { $ resolvableEntities [ 'Opifer\EavBundle\Model\MediaInterface' ] = $ config [ 'media_class' ] ; } foreach ( $ container -> getExtensions ( ) as $ name => $ extension ) { switch ( $ name ) { case 'doctrine' : $ container -> prependExtensionConfig ( $ name , [ 'orm' => [ 'resolve_target_entities' => $ resolvableEntities , ] , ] ) ; break ; } } }
docstring: Prepend our config before other bundles, so we can preset
  their config with our parameters
  
  @param ContainerBuilder $container
  
  @return void
docstring_tokens: Prepend our config before other bundles so we can preset their config with our parameters