Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Routing] fixed a caching issue when annotations are used on a base c…
…lass used by more than one concrete class Doctrine caches annotations. For methods, it uses PHP reflection and the getDeclaringClass() to create a unique cache key. Unfortunately, if you have 2 classes that extend another one, the cache will be shared. It's not a problem except that before this patch, the default route name was also cached (as the cache is serialized after we changed the object). So, all other classes inherited this default route name. The fix is quite easy: just don't change the read annotation object.
- Loading branch information