We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955774e commit 7c145ecCopy full SHA for 7c145ec
src/Flex.php
@@ -239,6 +239,12 @@ public function activate(Composer $composer, IOInterface $io)
239
240
public function configureProject(Event $event)
241
{
242
+ if (null === $this->downloader->getEndpoint()) {
243
+ $this->io->writeError('<warning>Project configuration is disabled: "symfony/flex" not found in the root composer.json</warning>');
244
+
245
+ return;
246
+ }
247
248
$json = new JsonFile(Factory::getComposerFile());
249
$contents = file_get_contents($json->getPath());
250
$manipulator = new JsonManipulator($contents);
0 commit comments