original_string: public function loadConfigDir($dir, $env = null)
      {
          !$env && $env = $this->name;
          $config = $this->getFileConfig($dir . '/config.php');
          $envConfig = $this->getFileConfig($dir . '/config-' . $env . '.php');
          $config = array_replace_recursive($config, $envConfig);
          $this->wei->setConfig($config);
          return $this;
      }
code: public function loadConfigDir($dir, $env = null)
      {
          !$env && $env = $this->name;
          $config = $this->getFileConfig($dir . '/config.php');
          $envConfig = $this->getFileConfig($dir . '/config-' . $env . '.php');
          $config = array_replace_recursive($config, $envConfig);
          $this->wei->setConfig($config);
          return $this;
      }
code_tokens: public function loadConfigDir ( $ dir , $ env = null ) { ! $ env && $ env = $ this -> name ; $ config = $ this -> getFileConfig ( $ dir . '/config.php' ) ; $ envConfig = $ this -> getFileConfig ( $ dir . '/config-' . $ env . '.php' ) ; $ config = array_replace_recursive ( $ config , $ envConfig ) ; $ this -> wei -> setConfig ( $ config ) ; return $ this ; }
docstring: Loads two config files in specified directory to service container
  
  @param string $dir The config directory
  @param string $env
  @return $this
docstring_tokens: Loads two config files in specified directory to service container