Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[HttpKernel] Allow bundles to declare classes and annotated classes to compile using patterns #19205
This PR introduces a simple system of patterns based on wildcards for classes to cache in the HttpKernel dependency injections extensions. This system started to be implemented in #18533 but I split it up here to use it also in the classes to compile.
I've been working on this with @tgalopin, so here are a few more thoughts:
Currently, bundles can use addClassesToCompile to declare which FQCN should be inlined for fast bootstrapping.
The second feature is adding a way for bundles to declare which classes have annotations that are going to be used in the app. This is useful for warming up annotation reader caches, but also makes it possible to inline classes that have annotations on them (and thus add the
The linked PR uses these to warm up the annotations cache.
changed the title from
[HttpKernel] Create ClassMatcher to use patterns in classes and annotations to cache
[HttpKernel] Allow bundles to declare annotated classes to cache using patterns
Jun 29, 2016
I think that this really belong to its own PR: the generated