Laravel\Lumen\Application::configure PHP Method

configure() public method

Load a configuration file into the application.
public configure ( string $name ) : void
$name string
return void
    public function configure($name)
    {
        if (isset($this->loadedConfigurations[$name])) {
            return;
        }
        $this->loadedConfigurations[$name] = true;
        $path = $this->getConfigurationPath($name);
        if ($path) {
            $this->make('config')->set($name, require $path);
        }
    }

Usage Example

 /**
  * Load a configuration file into the application.
  *
  * @return void 
  * @static 
  */
 public static function configure($name)
 {
     \Laravel\Lumen\Application::configure($name);
 }