Open wouterj opened 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?
$this->container->get('doctrine')
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?