Файл: system/vendor/laminas/laminas-config-aggregator/src/InvalidConfigProcessorException.php
Строк: 56
<?php
/**
* @see https://github.com/laminas/laminas-config-aggregator for the canonical source repository
* @copyright https://github.com/laminas/laminas-config-aggregator/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-config-aggregator/blob/master/LICENSE.md New BSD License
*/
namespace LaminasConfigAggregator;
use RuntimeException;
use function sprintf;
class InvalidConfigProcessorException extends RuntimeException
{
/**
* @param string $processor
*
* @return InvalidConfigProcessorException
*/
public static function fromNamedProcessor($processor)
{
return new self(sprintf(
'Cannot use %s as processor - class cannot be loaded.',
$processor
));
}
/**
* @param string $type
*
* @return InvalidConfigProcessorException
*/
public static function fromUnsupportedType($type)
{
return new self(sprintf(
'Cannot use processor of type %s as processor - config processor must be callable.',
$type
));
}
}