Skip to content

Show post-install instructions in composer recipes <package> - #1101

Open
Amoifr wants to merge 1 commit into
symfony:2.xfrom
Amoifr:feat-922-show-post-install-messages
Open

Show post-install instructions in composer recipes <package>#1101
Amoifr wants to merge 1 commit into
symfony:2.xfrom
Amoifr:feat-922-show-post-install-messages

Conversation

@Amoifr

@Amoifr Amoifr commented Sep 4, 2026

Copy link
Copy Markdown
Q A
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #922
License MIT

The instructions a recipe prints at install time scroll away with the rest of the install output, and there was no way to read them again. composer recipes vendor/package now ends with them:

name             : acme/demo-bundle
version          : 1.0
status           : up to date
instructions     :

  * Add your credentials to config/packages/acme.yaml
  * Then run bin/console acme:setup

The lines go through Options::expandTargetDir(), so %CONFIG_DIR% and friends read the same as they do during the install. That is the only reason the command now receives Options; it is an optional trailing argument and falls back to the raw line when absent, so nothing breaks for anyone constructing the command.

No test: there is no RecipesCommandTest today, and this output is only reachable through a fixture that runs a real composer install, the way UpdateRecipesCommandTest does. Happy to add one on that pattern if you want it covered.

The instructions a recipe prints at install time scroll away with the rest
of the install output and there was no way to read them again. They are now
part of what composer recipes <package> shows.

The command needs Options to expand the %CONFIG_DIR% style placeholders the
same way the installer does, so it is passed along when the command is
registered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Be able to redisplay post-install-messages

1 participant