mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 07:43:12 +08:00
16 lines
388 B
PHP
16 lines
388 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Installer\Exception;
|
|
|
|
use RuntimeException;
|
|
use function sprintf;
|
|
|
|
class MissingRequiredOptionException extends RuntimeException implements ExceptionInterface
|
|
{
|
|
public static function fromOption(string $optionName): self
|
|
{
|
|
return new self(sprintf('The "%s" is required and can\'t be empty', $optionName));
|
|
}
|
|
}
|