contributte / doctrine-migrations

:running: Doctrine Migrations for Nette Framework
https://contributte.org/packages/nettrine/migrations.html
MIT License
39 stars 15 forks source link

Optionally auto-register commands to Application #2

Closed fmasa closed 6 years ago

fmasa commented 6 years ago

Right now this extension expects commands autodiscovery as contributte/console does it. Providing way to optionally auto-register commands like zenify/doctrine-migrations would bring support even for kdyby/console.

Something like:

console:
    loadCommands: true # default false
josefbenjac commented 6 years ago

I guess you can use decorator in this case.

decorator:
    Symfony\Component\Console\Command\Command:
        tags: [kdyby.console.command]
fmasa commented 6 years ago

Great, thank you! Didn't know about that extension. Would you mention it somewhere in the docs? I expect that interop with kdyby/console is a common scenario.

f3l1x commented 6 years ago

We'll mention it ;-) Thanks @fmasa for the issue for that.

josefbenjac commented 6 years ago

https://github.com/nettrine/migrations/blob/master/.docs/README.md#kdybydoctrine