I have several major Symfony projects, and I noticed that after upgrading everything to Symfony 4 (Flex), when our deployment automation performs its usual process:
composer install --no-dev
As a result, we get (for example):
Symfony operations: 2 recipes (72fad9713126cf1479bb25a53d64d744) - Unconfiguring symfony/maker-bundle (>=1.0): From github.com/symfony/recipes:master - Unconfiguring phpunit/phpunit (>=4.7): From github.com/symfony/recipes:master
Then, as expected, this leads to changes in symfony.lock and config/bundles.php , plus everything else, depending on what was included in require-dev in composer.json .
None of this breaks down, for sure, but annoying the existence of a production rollout that no longer has a clean output of git status , and can lead to confusion about what is actually deployed.
There are various workarounds for this, for example, I could just put everything in require rather than require-dev , since there is no real harm when deploying this stuff, or I could omit the --no-dev of the Composer command.
But really, what is the right practice here? It seems strange that there is no way to tell Flex not to make any configuration changes if you are just deploying a blocked piece of software. Is this a function request, or am I missing some configuration here?
symfony composer-php symfony4 symfony-flex
futureal
source share