for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Jose\Factory;
use Jose\Signer;
final class SignerFactory
{
/**
* @param string[] $algorithms
* @return \Jose\SignerInterface
public static function createSigner(array $algorithms)
$algorithm_manager = AlgorithmManagerFactory::createAlgorithmManager($algorithms);
return new Signer($algorithm_manager);
}