original_string: public function loadConfigFile($file, $env = null)
      {
          $file = str_replace('%env%', $env ?: $this->name, $file);
          $config = $this->getFileConfig($file);
          if ($config) {
              $this->wei->setConfig($config);
          }
          return $this;
      }
code: public function loadConfigFile($file, $env = null)
      {
          $file = str_replace('%env%', $env ?: $this->name, $file);
          $config = $this->getFileConfig($file);
          if ($config) {
              $this->wei->setConfig($config);
          }
          return $this;
      }
code_tokens: public function loadConfigFile ( $ file , $ env = null ) { $ file = str_replace ( '%env%' , $ env ? : $ this -> name , $ file ) ; $ config = $ this -> getFileConfig ( $ file ) ; if ( $ config ) { $ this -> wei -> setConfig ( $ config ) ; } return $ this ; }
docstring: Loads configs from specified file to service container
  
  @param string $file The config file path
  @param string $env The value to replace the %env% placeholder, default to the env name
  @return $this
docstring_tokens: Loads configs from specified file to service container