original_string: protected function getConfigurationsFromFile($fileName, ContainerBuilder $container, $merge = true)
      {
          $configs = [];
  
          /** @var \Symfony\Component\Finder\SplFileInfo $file */
          foreach ($this->getFinder($fileName, $container) as $file) {
              $currentConfiguration = Yaml::parse($file->getContents());
  
              // skip empty files
              if (empty($currentConfiguration)) {
                  continue;
              }
  
              // merge configurations recursively or just stack
              if ($merge) {
                  $configs = array_merge_recursive($configs, $currentConfiguration);
              } else {
                  $configs[] = reset($currentConfiguration);
              }
          }
  
          return $configs;
      }
code: protected function getConfigurationsFromFile($fileName, ContainerBuilder $container, $merge = true)
      {
          $configs = [];
  
          /** @var \Symfony\Component\Finder\SplFileInfo $file */
          foreach ($this->getFinder($fileName, $container) as $file) {
              $currentConfiguration = Yaml::parse($file->getContents());
  
              // skip empty files
              if (empty($currentConfiguration)) {
                  continue;
              }
  
              // merge configurations recursively or just stack
              if ($merge) {
                  $configs = array_merge_recursive($configs, $currentConfiguration);
              } else {
                  $configs[] = reset($currentConfiguration);
              }
          }
  
          return $configs;
      }
code_tokens: protected function getConfigurationsFromFile ( $ fileName , ContainerBuilder $ container , $ merge = true ) { $ configs = [ ] ; /** @var \Symfony\Component\Finder\SplFileInfo $file */ foreach ( $ this -> getFinder ( $ fileName , $ container ) as $ file ) { $ currentConfiguration = Yaml :: parse ( $ file -> getContents ( ) ) ; // skip empty files if ( empty ( $ currentConfiguration ) ) { continue ; } // merge configurations recursively or just stack if ( $ merge ) { $ configs = array_merge_recursive ( $ configs , $ currentConfiguration ) ; } else { $ configs [ ] = reset ( $ currentConfiguration ) ; } } return $ configs ; }
docstring: Returns all configurations registered in the specific yaml file.
  
  @param string           $fileName  Name of the file with extension
  @param ContainerBuilder $container Container builder
  @param bool             $merge     Merge configuration recursively or just stack
  
  @return array
docstring_tokens: Returns all configurations registered in the specific yaml file .