Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Make sure repositories is written to composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hussainweb committed Oct 14, 2017
1 parent 1f55aae commit 0e4983b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DrupalInitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ private function getRepositories(InputInterface $input)
'url' => 'https://packages.drupal.org/8',
]);

// Add our Drupal packagist URL to the repositories so that it appears
// in the composer.json file.
$repositories[] = 'https://packages.drupal.org/8';
$input->setOption('repository', $repositories);

$repos[] = RepositoryFactory::createRepo($io, $config, [
'type' => 'composer',
'url' => 'https://packagist.org',
Expand Down

0 comments on commit 0e4983b

Please sign in to comment.