..) for the runtime of $callback
Usage:
$this->securityContext->withoutAuthorizationChecks(function () use ($accountRepository, $username, $providerName, &$account) {
this will disable the PersistenceQueryRewritingAspect for this one call
$account = $accountRepository->findActiveByAccountIdentifierAndAuthenticationProviderName($username, $providerName)
});
public withoutAuthorizationChecks ( Closure $callback ) : void | ||
$callback | Closure | |
Résultat | void |