-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] cache annotations using DoctrineCacheBundle #20234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Cannot reproduce this issue. The steps I took were:
What did you run? A specific command or custom controller? |
i'm using symfony/symfony 2.7.19 and doctrine/doctrine-cache-bundle 1.3.0 the result when i run
|
Sorry, still can't reproduce with Symfony What are you running exactly? A console command? A controller? A custom service? How are those services defined? Can you provide any code that someone else can run the reproduce the same error you are getting? Perhaps host that in a new repository or Gist. |
sorry. i cant make the problem reproduce with fresh symfony standard edition. |
…"cache.annotations" (nicolas-grekas) This PR was merged into the 3.2 branch. Discussion ---------- [FrameworkBundle] Don't rely on any parent definition for "cache.annotations" | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Instead of a generic approach that failed in #20537, let's focus on the `cache.annotations` service, which is the one that needs special care because it can be required while the container is being built. See e.g.: - #20234 - http://stackoverflow.com/questions/39625863/vichuploadbundle-inb-symfony-3-cant-load-cache-annotations-service/40626277 - schmittjoh/JMSDiExtraBundle#262 When the service is required at build time, we can't provide it a logger, because no logger service is ready at that time. Still, that doesn't prevent the service from working. The late `CachePoolClearerPass` wires the logger for later instantiations so that `cache.annotations` has a properly configured logger *for the next requests*. Commits ------- f62b820 [FrameworkBundle] Dont rely on any parent definition for "cache.annotations"
when i ran i got
The text was updated successfully, but these errors were encountered: