Commit d1f7528
committed
bug #61940 [DependencyInjection] Register a custom autoloader to generate
This PR was merged into the 7.4 branch.
Discussion
----------
[DependencyInjection] Register a custom autoloader to generate `*Config` classes when they don't exist yet
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | -
| License | MIT
When using classes like `FrameworkConfig` or `WebProfilerConfig` in the config, cache cannot be built as classes don't exist yet.
This PRs adds a custom class autoloader that checks if the requested `*Config` class exists under the `Symfony\Config` namespace, and triggers the class generation if necessary.
Commits
-------
28b25afc663 [DependencyInjection] Register a custom autoloader to generate `*Config` classes when they don't exist yet*Config classes when they don't exist yet (alexandre-daubois)1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
64 | 73 | | |
65 | 74 | | |
| |||
108 | 117 | | |
109 | 118 | | |
110 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
111 | 125 | | |
112 | 126 | | |
113 | 127 | | |
| |||
0 commit comments