Cli/src/CliConfiguration.php

22 lines
533 B
PHP

<?php
namespace Nest\Cli;
use Nest\Cli\Exceptions\Command\InvalidCommandHandlerException;
use Nest\Cli\Exceptions\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;
}