symfony-cmf / create-bundle

UNMAINTAINED - Integrates create.js and createphp into Symfony2
http://cmf.symfony.com/
29 stars 31 forks source link

Errors on cache warmup without database being available #146

Open wouterj opened 8 years ago

wouterj commented 8 years ago

Example: https://travis-ci.org/symfony-cmf/standard-edition/jobs/98547671#L611 Related: https://github.com/symfony-cmf/RoutingBundle/issues/319

Warming up the cache without the database existing results in an exception at the moment, as the Midgard Twig extension requires Doctrine.

Should we create a wrapper which lazily calls $this->container->get('doctrine') instead, to prevent these errors?