Skip to content

Commit

Permalink
#14 fix deprecated command name
Browse files Browse the repository at this point in the history
  • Loading branch information
khalyomede committed Nov 28, 2023
1 parent ca71ec2 commit 59f0046
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/Commands/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@
use Khalyomede\PhpTypo\Exceptions\FolderScanException;
use Khalyomede\PhpTypo\Exceptions\NotAFileException;
use Khalyomede\PhpTypo\Exceptions\WordsFileInvalidJsonFormatException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
name: "check"
)]
final class Check extends Command
{
protected static $defaultName = "check";

protected function execute(InputInterface $input, OutputInterface $output): int
{
try {
Expand Down
6 changes: 4 additions & 2 deletions src/Commands/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@

use Khalyomede\PhpTypo\Config;
use Khalyomede\PhpTypo\Exceptions\ConfigWriteException;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand(
name: "init",
)]
final class Init extends Command
{
protected static $defaultName = "init";

protected function execute(InputInterface $input, OutputInterface $output): int
{
if (Config::exists()) {
Expand Down

0 comments on commit 59f0046

Please sign in to comment.