Файл: system/vendor/laminas/laminas-config-aggregator/src/InvalidConfigProviderException.php
Строк: 58
<?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 InvalidConfigProviderException extends RuntimeException
{
/**
* @param string $provider
*
* @return InvalidConfigProviderException
*/
public static function fromNamedProvider($provider)
{
return new self(sprintf(
'Cannot read config from %s - class cannot be loaded.',
$provider
));
}
/**
* @param string $type
*
* @return InvalidConfigProviderException
*/
public static function fromUnsupportedType($type)
{
return new self(
sprintf("Cannot read config from %s - config provider must be callable.", $type)
);
}
}