◐ Shell
clean mode source ↗

Add allow-plugins config value by Seldaek · Pull Request #10314 · composer/composer

stof

@Seldaek Seldaek marked this pull request as ready for review

December 6, 2021 14:25

naderman

naderman

Seldaek

…sting plugins impossible
…o enable/disable some packages, so we can suppress warnings for things we never want enabled, and add a way to update the config for the user if run interactively
Co-authored-by: Nils Adermann <naderman@naderman.de>

@Seldaek

@Seldaek

Seldaek added a commit to composer/getcomposer.org that referenced this pull request

Dec 7, 2021

@Seldaek

@naderman

naderman

@stof stof mentioned this pull request

Dec 8, 2021

nicolas-grekas added a commit to symfony/skeleton that referenced this pull request

Dec 11, 2021
This PR was merged into the 4.4 branch.

Discussion
----------

Add allow-plugins in the skeleton config

Refs composer/composer#10314

For now, the default value in Composer is still to allow all plugins implicitly for BC. But the behavior will change in July 2022 to default to an empty list of allowed plugins.

This PR has 2 effects:
- it makes new project use the new Composer behavior directly instead of relying on the BC layer
- it marks `symfony/flex` as an allowed plugin, as our skeleton is meant to be used with Flex

The first point means that projects installing other composer plugins will need to mark them as allowed for them to run (but `composer update` running in an interactive shell will ask for that anyway)

Commits
-------

f757a29 Add allow-plugins in the skeleton config

aschempp added a commit to contao/contao-manager that referenced this pull request

Dec 14, 2021