Reputation: 170
I can't make composer working with flex receipe on a symfony4 project, on Windows.
Here is the complete process :
php -v
).composer create-project symfony/skeleton sf4
cd C:/sf4
php -S 127.0.0.1:8000 -t public
locahost:8000
composer require twig
The error I get :
[InvalidArgumentException]
Could not find package twig.
Did you mean one of these?
twig/twig
slim/twig-view
latte/latte
twig/extensions
timber/timber
I tried with a local composer.phar inside the sf4 project :
cd C:/sf4
php composer.phar require twig
=> same error
Composer seems to ignore flex plugin, do you have any idea ? Thx !
Upvotes: 0
Views: 129
Reputation: 26
see the answer of nicolas-grekas in the following link
you can continue using the symfony containers in this link, just look for the alias that flex used.
in your case twig for flex is "symfony / twig-bundle", run composer req symfony / twig-bundle
.
salu2
Upvotes: 1