public function create(array $aliases): ClaimCheckerManager
    {
        $checkers = [];
        foreach ($aliases as $alias) {
            if (\array_key_exists($alias, $this->checkers)) {
                $checkers[] = $this->checkers[$alias];
            } else {
                throw new \InvalidArgumentException(\sprintf('The claim checker with the alias "%s" is not supported.', $alias));
            }
        }

        return ClaimCheckerManager::create($checkers);
    }
public function create(array $aliases): ClaimCheckerManager
    {
        $checkers = [];
        foreach ($aliases as $alias) {
            if (\array_key_exists($alias, $this->checkers)) {
                $checkers[] = $this->checkers[$alias];
            } else {
                throw new \InvalidArgumentException(\sprintf('The claim checker with the alias "%s" is not supported.', $alias));
            }
        }

        return ClaimCheckerManager::create($checkers);
    }
public function create ( array $ aliases ) : ClaimCheckerManager { $ checkers = [ ] ; foreach ( $ aliases as $ alias ) { if ( \ array_key_exists ( $ alias , $ this -> checkers ) ) { $ checkers [ ] = $ this -> checkers [ $ alias ] ; } else { throw new \ InvalidArgumentException ( \ sprintf ( 'The claim checker with the alias "%s" is not supported.' , $ alias ) ) ; } } return ClaimCheckerManager :: create ( $ checkers ) ; }
This method creates a Claim Checker Manager and populate it with the claim checkers found based on the alias.
If the alias is not supported, an InvalidArgumentException is thrown.

@param string[] $aliases
This method creates a Claim Checker Manager and populate it with the claim checkers found based on the alias . If the alias is not supported an InvalidArgumentException is thrown .