@@ -851,7 +851,7 @@ protected function {$methodName}($lazyInitialization)
851
851
if ($ definition ->isDeprecated ()) {
852
852
$ deprecation = $ definition ->getDeprecation ($ id );
853
853
$ code .= sprintf (" trigger_deprecation(%s, %s, %s); \n\n" , $ this ->export ($ deprecation ['package ' ]), $ this ->export ($ deprecation ['version ' ]), $ this ->export ($ deprecation ['message ' ]));
854
- } elseif (!$ definition ->hasTag ($ this ->preloadTags [1 ])) {
854
+ } elseif ($ definition -> hasTag ( $ this -> hotPathTag ) || !$ definition ->hasTag ($ this ->preloadTags [1 ])) {
855
855
foreach ($ this ->inlinedDefinitions as $ def ) {
856
856
foreach ($ this ->getClasses ($ def , $ id ) as $ class ) {
857
857
$ this ->preload [$ class ] = $ class ;
@@ -1017,7 +1017,7 @@ private function addServices(array &$services = null): string
1017
1017
foreach ($ definitions as $ id => $ definition ) {
1018
1018
if (!$ definition ->isSynthetic ()) {
1019
1019
$ services [$ id ] = $ this ->addService ($ id , $ definition );
1020
- } elseif (!$ definition ->hasTag ($ this ->preloadTags [1 ])) {
1020
+ } elseif ($ definition -> hasTag ( $ this -> hotPathTag ) || !$ definition ->hasTag ($ this ->preloadTags [1 ])) {
1021
1021
$ services [$ id ] = null ;
1022
1022
1023
1023
foreach ($ this ->getClasses ($ definition , $ id ) as $ class ) {
@@ -1046,7 +1046,7 @@ private function generateServiceFiles(array $services): iterable
1046
1046
ksort ($ definitions );
1047
1047
foreach ($ definitions as $ id => $ definition ) {
1048
1048
if ((list ($ file , $ code ) = $ services [$ id ]) && null !== $ file && ($ definition ->isPublic () || !$ this ->isTrivialInstance ($ definition ) || isset ($ this ->locatedIds [$ id ]))) {
1049
- yield $ file => [$ code , !$ definition ->hasTag ($ this ->preloadTags [1 ]) && !$ definition ->isDeprecated () && !$ definition ->hasErrors ()];
1049
+ yield $ file => [$ code , $ definition -> hasTag ( $ this -> hotPathTag ) || !$ definition ->hasTag ($ this ->preloadTags [1 ]) && !$ definition ->isDeprecated () && !$ definition ->hasErrors ()];
1050
1050
}
1051
1051
}
1052
1052
}
0 commit comments