Microweber\Providers\FileLoader::save PHP Метод

save() публичный Метод

Save the given configuration group.
public save ( array $items, string $environment, string $group, string $namespace = null ) : array
$items array
$environment string
$group string
$namespace string
Результат array
    public function save($items, $environment, $group, $namespace = null)
    {
        // First we'll get the root configuration path for the environment which is
        // where all of the configuration files live for that namespace, as well
        // as any environment folders with their specific configuration items.
        $path = $this->getPath($namespace);
        if (is_null($path)) {
            return;
        }
        // First we'll get the main configuration file for the groups. Once we have
        // that we can check for any environment specific files, which will get
        // merged on top of the main arrays to make the environments cascade.
        $file = !$environment || $environment == 'production' ? "{$path}/{$group}.php" : "{$path}/{$environment}/{$group}.php";
        $this->files->put($file, '<?php return ' . var_export($items, true) . ';');
    }
FileLoader