ZF\Apigility\Admin\Model\ModuleModel::writeApplicationConfig PHP Method

writeApplicationConfig() protected method

If a "modules.config.php" exists, writes to that with the "modules" subkey of the provided configuration; otherwise, writes to application.config.php.
protected writeApplicationConfig ( array $application, string $path ) : boolean
$application array Application configuration.
$path string Base path of the application.
return boolean Whether or not the operation was successful.
    protected function writeApplicationConfig(array $application, $path)
    {
        $modulesConfigFile = sprintf('%s/config/modules.config.php', $path);
        if (file_exists($modulesConfigFile)) {
            return $this->writeConfigFile($application['modules'], $modulesConfigFile);
        }
        return $this->writeConfigFile($application, sprintf('%s/config/application.config.php', $path));
    }