Jakob B.
Jakob B.

Reputation: 55

Can not install annotations

I tried installing annotations for symfony. But I can not install it.

composer require annotations

I tried writing "composer require annotations" -> https://save.jb-dev.eu/img/NWgZ7LPOv0.png

Does anyone have any idea what the problem might be?

Upvotes: 1

Views: 5775

Answers (2)

Fatima Tahsina
Fatima Tahsina

Reputation: 41

First, try the following command,

composer require sensio/framework-extra-bundle

Then run this command,

composer require annotation

Then it will work perfect.

Upvotes: 3

habibun
habibun

Reputation: 1630

if you use Symfony flex

composer require annotations

if you don't use Symfony Flex, add it to your composer.json file

or you can use this command

composer require sensio/framework-extra-bundle

Upvotes: 3

Related Questions