@@ -205,20 +205,19 @@ protected function bootResponseMacro(ResponseFactoryContract $responses)
205
205
*/
206
206
protected function bindNeomerx ()
207
207
{
208
- $ this ->app ->singleton (FactoryInterface::class, function (Application $ app ) {
209
- $ logger = $ app ->make (LoggerInterface::class);
208
+ $ this ->app ->singleton (Factory::class, function (Application $ app ) {
210
209
$ factory = new Factory ();
211
- $ factory ->setLogger ($ logger );
212
-
210
+ $ factory ->setLogger ($ app ->make (LoggerInterface::class));
213
211
return $ factory ;
214
212
});
215
213
216
- $ this ->app ->alias (FactoryInterface::class, DocumentFactoryInterface::class);
217
- $ this ->app ->alias (FactoryInterface::class, HandlerFactoryInterface::class);
218
- $ this ->app ->alias (FactoryInterface::class, HttpFactoryInterface::class);
219
- $ this ->app ->alias (FactoryInterface::class, ParserFactoryInterface::class);
220
- $ this ->app ->alias (FactoryInterface::class, SchemaFactoryInterface::class);
221
- $ this ->app ->alias (FactoryInterface::class, StackFactoryInterface::class);
214
+ $ this ->app ->alias (Factory::class, FactoryInterface::class);
215
+ $ this ->app ->alias (Factory::class, DocumentFactoryInterface::class);
216
+ $ this ->app ->alias (Factory::class, HandlerFactoryInterface::class);
217
+ $ this ->app ->alias (Factory::class, HttpFactoryInterface::class);
218
+ $ this ->app ->alias (Factory::class, ParserFactoryInterface::class);
219
+ $ this ->app ->alias (Factory::class, SchemaFactoryInterface::class);
220
+ $ this ->app ->alias (Factory::class, StackFactoryInterface::class);
222
221
}
223
222
224
223
/**
0 commit comments