问题
I created a new Symfony project symfony new test
.
Then if I check Symfony Requirements php bin/symfony_requirements
, it works as expected.
bin/symfony_requirements
require_once dirname(__FILE__).'/../var/SymfonyRequirements.php';
But when I made a composer update
, in bin/symfony_requirements
and in web/config.php
, the path to SymfonyRequirements.php is changed to :
bin/symfony_requirements and web/config/php
require_once dirname(__FILE__).'/./SymfonyRequirements.php';
So obviously, calling symfony_requirements
or config.php
with the browser failed since the path to SymfonyRequirements is wrong.
This is the first time that composer messes like that.
I have the latest composer (1.5.1).
Thanks for any help.
来源:https://stackoverflow.com/questions/45841958/symfony-composer-update-messes-with-symfonyrequirements-path