Skip to content

Errors on cache warmup without database being available #146

Description

@wouterj

Example: https://travis-ci.org/symfony-cmf/standard-edition/jobs/98547671#L611
Related: symfony-cmf/routing-bundle#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions