Skip to content

Commit

Permalink
Resolving interface issues
Browse files Browse the repository at this point in the history
reworking the Application class to get around the issue with methods not
matching the implementation
  • Loading branch information
JimTools committed Mar 4, 2024
1 parent 45a208e commit 1b1f7f6
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/analyzer/Cli/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,17 @@ class Application extends AbstractApplication
public function __construct()
{
parent::__construct('cli', '');
parent::setDefaultCommand('analyze');
}

protected function getCommandName(InputInterface $input)
{
return 'analyze';
}

protected function getDefaultCommands()
protected function getDefaultCommands(): array
{
$defaultCommands = AbstractApplication::getDefaultCommands();
$defaultCommands[] = new AnalyzeCommand();

return $defaultCommands;
}

public function getDefinition()
{
$inputDefinition = AbstractApplication::getDefinition();
$inputDefinition->setArguments();

return $inputDefinition;
}

public function doRun(InputInterface $input, OutputInterface $output): int
{
$output->writeln('Tombstone Analyzer');
Expand Down

0 comments on commit 1b1f7f6

Please sign in to comment.