shabang
shabang

Reputation: 170

Testing Symfony flex on Windows

I can't make composer working with flex receipe on a symfony4 project, on Windows.

Here is the complete process :

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

Answers (1)

carlos ivan
carlos ivan

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

Related Questions