11
0
Fork 0
mirror of https://github.com/n3w/helpers-cli-input.git synced 2025-12-19 20:53:27 +00:00

Updated to work with more than just Argument and Option input types. Makes use of InputTypeFactory to allow addition of new types as needed. Added InputTypeFactory to help with loading input type classes

This commit is contained in:
Alannah Kearney 2019-05-24 17:16:49 +10:00
commit 9e27b52991
8 changed files with 144 additions and 143 deletions

View file

@ -4,10 +4,10 @@ declare(strict_types=1);
namespace pointybeard\Helpers\Cli\Input\Exceptions;
class InputHandlerNotFoundException extends \Exception
class InputNotFoundException extends \Exception
{
public function __construct(string $handler, string $command, $code = 0, \Exception $previous = null)
public function __construct(string $name, $code = 0, \Exception $previous = null)
{
return parent::__construct(sprintf('The input handler %s could not be located.', $handler), $code, $previous);
return parent::__construct(sprintf('Input %s could not be found.', $name), $code, $previous);
}
}