mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 07:45:45 +01:00
Keeping the list of ISO 3166-2 up-to-date requires some maintenance. At the same time, PHP ISO Codes maintains an up-to-date database with even more ISO codes we could use in this library. This change doesn't fully use all resources of PHP ISO Codes, but it already removes some unnecessary code from the repository. We've already used this library, but it was heavy because it included all the localizations in it. Now, the package is much smaller (5.0M). Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
25 lines
581 B
PHP
25 lines
581 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
use function implode;
|
|
use function sprintf;
|
|
|
|
final class MissingComposerDependencyException extends ComponentException implements Exception
|
|
{
|
|
public function __construct(string $message, mixed ...$dependencies)
|
|
{
|
|
parent::__construct(sprintf(
|
|
'%s. Run `composer require %s` to fix this issue.',
|
|
$message,
|
|
implode(' ', $dependencies)
|
|
));
|
|
}
|
|
}
|