Bin / console without a working database

I would like to be able to run symfony php bin/console

without the dbal configured.

I want to run some non db related commands on CI without db.

How is this possible?

Thank.

+3


source to share


1 answer


As suggested by Cerad in his comment, you must remove the DoctrineBundle from AppKernel.php.



If you need this package in other contexts for your application (for example, access from the browser), you can define a custom environment (for example console

) and only enable the package in other environments (prod, dev, test by default). See https://symfony.com/doc/current/configuration/environments.html

+1


source







All Articles