Reputation: 8153
I would like to be able to run symfony php bin/console
without configured dbal.
I want to run some non-db related commands on CI without db.
Is it somehow possible?
Thanks.
Upvotes: 3
Views: 983
Reputation: 1529
As suggested by Cerad in his comment, you should remove the DoctrineBundle from AppKernel.php.
If you do need that bundle in other contexts for your app (e.g. accessing from a browser) than you could define a customized environment (e.g. console
) and enable the bundle only in the other environments (prod, dev, test are the default). See https://symfony.com/doc/current/configuration/environments.html
Upvotes: 1