original_string: public function initializeLocator(UniformResourceLocator $locator)
      {
          $locator->reset();
  
          $schemes = (array) $this->get('streams.schemes', []);
  
          foreach ($schemes as $scheme => $config) {
              if (isset($config['paths'])) {
                  $locator->addPath($scheme, '', $config['paths']);
              }
  
              $override = $config['override'] ?? false;
              $force = $config['force'] ?? false;
  
              if (isset($config['prefixes'])) {
                  foreach ((array)$config['prefixes'] as $prefix => $paths) {
                      $locator->addPath($scheme, $prefix, $paths, $override, $force);
                  }
              }
          }
      }
code: public function initializeLocator(UniformResourceLocator $locator)
      {
          $locator->reset();
  
          $schemes = (array) $this->get('streams.schemes', []);
  
          foreach ($schemes as $scheme => $config) {
              if (isset($config['paths'])) {
                  $locator->addPath($scheme, '', $config['paths']);
              }
  
              $override = $config['override'] ?? false;
              $force = $config['force'] ?? false;
  
              if (isset($config['prefixes'])) {
                  foreach ((array)$config['prefixes'] as $prefix => $paths) {
                      $locator->addPath($scheme, $prefix, $paths, $override, $force);
                  }
              }
          }
      }
code_tokens: public function initializeLocator ( UniformResourceLocator $ locator ) { $ locator -> reset ( ) ; $ schemes = ( array ) $ this -> get ( 'streams.schemes' , [ ] ) ; foreach ( $ schemes as $ scheme => $ config ) { if ( isset ( $ config [ 'paths' ] ) ) { $ locator -> addPath ( $ scheme , '' , $ config [ 'paths' ] ) ; } $ override = $ config [ 'override' ] ?? false ; $ force = $ config [ 'force' ] ?? false ; if ( isset ( $ config [ 'prefixes' ] ) ) { foreach ( ( array ) $ config [ 'prefixes' ] as $ prefix => $ paths ) { $ locator -> addPath ( $ scheme , $ prefix , $ paths , $ override , $ force ) ; } } } }
docstring: Initialize resource locator by using the configuration.
  
  @param UniformResourceLocator $locator
  @throws \BadMethodCallException
docstring_tokens: Initialize resource locator by using the configuration .