/**
  * Scans a composer.json file provided by a Composer package.
  *
  * @param string $file
  * @param bool $relative
  *   If TRUE, the paths will be relative to $this->localDirectory.
  *
  * @throws \Exception
  */
 function composerJson($file, $relative = TRUE)
 {
     $relative && ($file = $this->localDirectory . $file);
     $json = ComposerJson::createFromFile($file);
     $json->writeToAdapter($this->master);
 }
 /**
  * {@inheritdoc}
  */
 function composerJson($file)
 {
     $json = ComposerJson::createFromFile($file);
     $json->writeToAdapter($this);
 }