code: protected function loadConfiguration($configFile)
      {
          $this->stdout("Loading configuration from '{$configFile}'...\n");
          $config = require $configFile;
          foreach ($config as $name => $value) {
              if (property_exists($this, $name) || $this->canSetProperty($name)) {
                  $this->$name = $value;
              } else {
                  throw new Exception("Unknown configuration option: $name");
              }
          }
  
          $this->getAssetManager(); // check if asset manager configuration is correct
      }
docs: Applies configuration from the given file to self instance.
  @param string $configFile configuration file name.
  @throws \yii\console\Exception on failure.