diff --git a/CHANGELOG.md b/CHANGELOG.md index bd7a5d7..a56590f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +### Features + + * Change entrypoint class name. + ### Bug fix * Moved command-line option parsing logic into separate classes for better maintainability diff --git a/bin/php-variable-hard-usage b/bin/php-variable-hard-usage index 6230f5d..016b40a 100755 --- a/bin/php-variable-hard-usage +++ b/bin/php-variable-hard-usage @@ -10,12 +10,12 @@ foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php } } -use Smeghead\PhpVariableHardUsage\Command; +use Smeghead\PhpVariableHardUsage\EntryPoint; use Smeghead\PhpVariableHardUsage\Option\GetOptions; $getOptions = new GetOptions($_SERVER['argv']); $result = $getOptions->parse(); -$command = new Command(); -$exitCode = $command->run($result->options, $result->paths); +$entryPoint = new EntryPoint(); +$exitCode = $entryPoint->run($result->options, $result->paths); exit($exitCode); \ No newline at end of file diff --git a/src/Command.php b/src/EntryPoint.php similarity index 95% rename from src/Command.php rename to src/EntryPoint.php index b78dd61..2e586f7 100644 --- a/src/Command.php +++ b/src/EntryPoint.php @@ -6,7 +6,7 @@ use Smeghead\PhpVariableHardUsage\Option\CommandFactory; -final class Command +final class EntryPoint { /** * @param array $options