File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ public function getConfigSchema(): Schema
82
82
'translatorFactory ' => Expect::string ()->default (null ),
83
83
'returnOriginalMessage ' => Expect::bool ()->default (true ),
84
84
'autowired ' => Expect::type ('bool|array ' )->default (true ),
85
+ 'latteFactory ' => Expect::string (ILatteFactory::class)->nullable (),
85
86
]);
86
87
}
87
88
@@ -229,7 +230,7 @@ public function beforeCompile(): void
229
230
$ tracyPanel = $ builder ->getDefinition ($ this ->prefix ('tracyPanel ' ));
230
231
}
231
232
232
- $ latteFactoryName = $ builder ->getByType (ILatteFactory::class) ;
233
+ $ latteFactoryName = $ this -> config -> latteFactory ? $ builder ->getByType ($ this -> config -> latteFactory ) : null ;
233
234
234
235
if ($ latteFactoryName !== null ) {
235
236
$ iTranslator = $ builder ->getDefinitionByType (ITranslator::class);
You can’t perform that action at this time.
0 commit comments