Cli/src/CliConfiguration.php

23 lines
533 B
PHP
Raw Normal View History

2024-11-08 15:56:14 +01:00
<?php
namespace Nest\Cli;
use Nest\Exceptions\Cli\Command\InvalidCommandHandlerException;
use Nest\Exceptions\Cli\IncompatibleCliHandlerSubcommands;
use Nest\Services\ServiceConfiguration;
/**
* CLI configuration class.
*/
abstract class CliConfiguration extends ServiceConfiguration
{
/**
* Define commands of the CLI.
* @param Cli $cli The CLI to configure.
* @return void
* @throws InvalidCommandHandlerException
* @throws IncompatibleCliHandlerSubcommands
*/
public abstract function define(Cli $cli): void;
}