Skip to content

Commit

Permalink
Cannot migrate Injector -> Play.beanSource
Browse files Browse the repository at this point in the history
  • Loading branch information
cies authored and asolntsev committed Sep 29, 2023
1 parent 6d8c617 commit 4eb2c2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/play/mvc/ActionInvoker.java
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ boolean actionNeedsSession(Http.Request request) {
}

private PlayController createController(ActionContext context) {
PlayController controller = Play.beanSource.getBeanOfType(context.request.controllerClass);
PlayController controller = Injector.getBeanOfType(context.request.controllerClass);
if (controller instanceof PlayContextController) {
((PlayContextController) controller).setContext(context);
}
Expand Down Expand Up @@ -438,7 +438,7 @@ static Object invokeControllerMethod(Http.Request request, Session session, Meth

Object methodClassInstance = isStatic ? null :
(method.getDeclaringClass().isAssignableFrom(request.controllerClass)) ? request.controllerInstance :
Play.beanSource.getBeanOfType(method.getDeclaringClass());
Injector.getBeanOfType(method.getDeclaringClass());

return invoke(method, methodClassInstance, args);
}
Expand Down

0 comments on commit 4eb2c2e

Please sign in to comment.