Goal: tell the user which package provides an unknown command.
Without phalcon/migrations installed, crest migration:run prints:
unknown command 'migration:run'
The user does not learn that a package provides the command. Proposed:
unknown command 'migration:run'; provided by phalcon/migrations
This needs no change in phalcon/migrations. It does not depend on [NFR]: Package-contributed commands.
Goal: tell the user which package provides an unknown command.
Without
phalcon/migrationsinstalled,crest migration:runprints:The user does not learn that a package provides the command. Proposed:
Crest\Commands, for examplemigration:tophalcon/migrations. Strings only, no class references, so nothing breaks when a package changes its classes.Crest\Consolemust not name crest or its packages (IsolationTest). The error comes fromRegistry(src/Console/Registry.php).This needs no change in
phalcon/migrations. It does not depend on[NFR]: Package-contributed commands.