Skip to content

Commit

Permalink
Ignore call of setter if translator is not available and remove not n…
Browse files Browse the repository at this point in the history
…ecessary nullable of setter parameter
  • Loading branch information
malteschlueter committed Sep 2, 2020
1 parent 4291f7f commit 485e59f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -143,7 +143,7 @@
abstract_arg('options'),
service('property_accessor')->nullOnInvalid(),
])
->call('setTranslator', [service('translator')->nullOnInvalid()])
->call('setTranslator', [service('translator')->ignoreOnInvalid()])

->set('security.authenticator.remember_me', RememberMeAuthenticator::class)
->abstract()
Expand Down
Expand Up @@ -189,7 +189,7 @@
service('event_dispatcher')->nullOnInvalid(),
service('property_accessor')->nullOnInvalid(),
])
->call('setTranslator', [service('translator')->nullOnInvalid()])
->call('setTranslator', [service('translator')->ignoreOnInvalid()])
->tag('monolog.logger', ['channel' => 'security'])

->set('security.authentication.listener.remote_user', RemoteUserAuthenticationListener::class)
Expand Down
Expand Up @@ -143,7 +143,7 @@ public function isInteractive(): bool
return true;
}

public function setTranslator(?TranslatorInterface $translator)
public function setTranslator(TranslatorInterface $translator)
{
$this->translator = $translator;
}
Expand Down
Expand Up @@ -216,7 +216,7 @@ public function setSessionAuthenticationStrategy(SessionAuthenticationStrategyIn
$this->sessionStrategy = $sessionStrategy;
}

public function setTranslator(?TranslatorInterface $translator)
public function setTranslator(TranslatorInterface $translator)
{
$this->translator = $translator;
}
Expand Down

0 comments on commit 485e59f

Please sign in to comment.