@@ -194,11 +194,11 @@ public function serve($serviceName, Request $httpRequest)
194194 }
195195
196196 // Multiple IdPs found...
197-
197+ $ container = $ application -> getDiContainer ();
198198 // Auto-select IdP when 'feature_enable_sso_notification' is enabled and send AuthenticationRequest on success
199- if ($ application -> getDiContainer () ->getFeatureConfiguration ()->isEnabled ("eb.enable_sso_notification " )) {
200- $ idpEntityId = $ application -> getDiContainer ()-> getSsoNotificationService ()->
201- handleSsoNotification ( $ application -> getDiContainer () ->getSymfonyRequest ()->cookies , $ this ->_server );
199+ if ($ container ->getFeatureConfiguration ()->isEnabled ("eb.enable_sso_notification " )) {
200+ $ idpEntityId = $ container -> getSsoNotificationService ()
201+ -> handleSsoNotification ( $ container ->getSymfonyRequest ()->cookies , $ this ->_server );
202202
203203 if (!empty ($ idpEntityId )) {
204204 try {
@@ -214,8 +214,8 @@ public function serve($serviceName, Request $httpRequest)
214214 }
215215
216216 // Auto-select IdP when 'wayf.rememberChoice' feature is enabled and is allowed for the current request
217- if (($ application -> getDiContainer () ->getRememberChoice () === true ) && !($ request ->getForceAuthn () || $ request ->isDebugRequest ())) {
218- $ cookies = $ application -> getDiContainer () ->getSymfonyRequest ()->cookies ->all ();
217+ if (($ container ->getRememberChoice () === true ) && !($ request ->getForceAuthn () || $ request ->isDebugRequest ())) {
218+ $ cookies = $ container ->getSymfonyRequest ()->cookies ->all ();
219219 if (array_key_exists ('rememberchoice ' , $ cookies )) {
220220 $ remembered = json_decode ($ cookies ['rememberchoice ' ]);
221221 if (array_search ($ remembered , $ candidateIDPs ) !== false ) {
@@ -234,10 +234,10 @@ public function serve($serviceName, Request $httpRequest)
234234 return ;
235235 }
236236
237- $ authnRequestRepository = $ application -> getDiContainer () ->getAuthnRequestSessionRepository ();
237+ $ authnRequestRepository = $ container ->getAuthnRequestSessionRepository ();
238238 $ authnRequestRepository ->store ($ request );
239239
240- $ correlationIdRepository = $ application -> getDiContainer () ->getCorrelationIdRepository ();
240+ $ correlationIdRepository = $ container ->getCorrelationIdRepository ();
241241 $ correlationIdRepository ->mint ($ request ->getId ());
242242 $ correlationIdRepository ->resolve ($ request ->getId ());
243243
0 commit comments