Extract logic to determine list of rules from ManageRedirectRulesCommand to a helper service

This commit is contained in:
Alejandro Celaya
2024-03-03 09:48:56 +01:00
parent a843c59d77
commit a45550b0c6
5 changed files with 251 additions and 222 deletions

View File

@@ -14,14 +14,10 @@ use Throwable;
use function is_string;
use function sprintf;
class DateOption
readonly class DateOption
{
public function __construct(
private readonly Command $command,
private readonly string $name,
string $shortcut,
string $description,
) {
public function __construct(private Command $command, private string $name, string $shortcut, string $description)
{
$command->addOption($name, $shortcut, InputOption::VALUE_REQUIRED, $description);
}