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

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

        return AlgorithmManager::create($algorithms);
    }
public function create ( array $ aliases ) : AlgorithmManager { $ algorithms = [ ] ; foreach ( $ aliases as $ alias ) { if ( \ array_key_exists ( $ alias , $ this -> algorithms ) ) { $ algorithms [ ] = $ this -> algorithms [ $ alias ] ; } else { throw new \ InvalidArgumentException ( \ sprintf ( 'The algorithm with the alias "%s" is not supported.' , $ alias ) ) ; } } return AlgorithmManager :: create ( $ algorithms ) ; }
Create an algorithm manager using the given aliases.

@param string[] $aliases
Create an algorithm manager using the given aliases .