@@ -200,11 +200,11 @@ public function serve($serviceName, Request $httpRequest)
200200 }
201201
202202 // Multiple IdPs found...
203-
203+ $ container = $ application -> getDiContainer ();
204204 // Auto-select IdP when 'feature_enable_sso_notification' is enabled and send AuthenticationRequest on success
205- if ($ application -> getDiContainer () ->getFeatureConfiguration ()->isEnabled ("eb.enable_sso_notification " )) {
206- $ idpEntityId = $ application -> getDiContainer ()-> getSsoNotificationService ()->
207- handleSsoNotification ( $ application -> getDiContainer () ->getSymfonyRequest ()->cookies , $ this ->_server );
205+ if ($ container ->getFeatureConfiguration ()->isEnabled ("eb.enable_sso_notification " )) {
206+ $ idpEntityId = $ container -> getSsoNotificationService ()
207+ -> handleSsoNotification ( $ container ->getSymfonyRequest ()->cookies , $ this ->_server );
208208
209209 if (!empty ($ idpEntityId )) {
210210 try {
@@ -220,8 +220,8 @@ public function serve($serviceName, Request $httpRequest)
220220 }
221221
222222 // Auto-select IdP when 'wayf.rememberChoice' feature is enabled and is allowed for the current request
223- if (($ application -> getDiContainer () ->getRememberChoice () === true ) && !($ request ->getForceAuthn () || $ request ->isDebugRequest ())) {
224- $ cookies = $ application -> getDiContainer () ->getSymfonyRequest ()->cookies ->all ();
223+ if (($ container ->getRememberChoice () === true ) && !($ request ->getForceAuthn () || $ request ->isDebugRequest ())) {
224+ $ cookies = $ container ->getSymfonyRequest ()->cookies ->all ();
225225 if (array_key_exists ('rememberchoice ' , $ cookies )) {
226226 $ remembered = json_decode ($ cookies ['rememberchoice ' ]);
227227 if (array_search ($ remembered , $ candidateIDPs ) !== false ) {
@@ -240,10 +240,10 @@ public function serve($serviceName, Request $httpRequest)
240240 return ;
241241 }
242242
243- $ authnRequestRepository = $ application -> getDiContainer () ->getAuthnRequestSessionRepository ();
243+ $ authnRequestRepository = $ container ->getAuthnRequestSessionRepository ();
244244 $ authnRequestRepository ->store ($ request );
245245
246- $ correlationIdRepository = $ application -> getDiContainer () ->getCorrelationIdRepository ();
246+ $ correlationIdRepository = $ container ->getCorrelationIdRepository ();
247247 $ correlationIdRepository ->mint ($ request ->getId ());
248248 $ correlationIdRepository ->resolve ($ request ->getId ());
249249
0 commit comments