src/PackageManager.php
public function writeJson($path, array $config)
    {
        $jsonFile = new JsonFile($path);
        $jsonFile->write($this->prepareConfig($config));
    }
public function writeJson($path, array $config)
    {
        $jsonFile = new JsonFile($path);
        $jsonFile->write($this->prepareConfig($config));
    }
public function writeJson ( $ path , array $ config ) { $ jsonFile = new JsonFile ( $ path ) ; $ jsonFile -> write ( $ this -> prepareConfig ( $ config ) ) ; }
Saves JSON config to the given path.

@param string $path
@param array $config
@throws \Exception
Saves JSON config to the given path .