Skip to content

Commit a86c252

Browse files
committed
Test command for the correct identification of the PHP in the repository
1 parent 9c47902 commit a86c252

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

src/Command/.gitkeep

Whitespace-only changes.

src/Command/TestCommand.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
namespace Command;
4+
5+
use Symfony\Component\Console\Command\Command;
6+
use Symfony\Component\Console\Input\InputArgument;
7+
use Symfony\Component\Console\Input\InputInterface;
8+
use Symfony\Component\Console\Input\InputOption;
9+
use Symfony\Component\Console\Output\OutputInterface;
10+
11+
/**
12+
* TestCommand
13+
*/
14+
class TestCommand extends Command
15+
{
16+
/**
17+
* Configuration of command
18+
*/
19+
protected function configure()
20+
{
21+
$this
22+
->setName("test")
23+
->setDescription("Command test")
24+
;
25+
}
26+
27+
/**
28+
* Execute method of command
29+
*
30+
* @param InputInterface $input
31+
* @param OutputInterface $output
32+
*
33+
* @return int|null|void
34+
*/
35+
protected function execute(InputInterface $input, OutputInterface $output)
36+
{
37+
$output->writeln(array("","<info>Execute test command</info>",""));
38+
}
39+
}

0 commit comments

Comments
 (0)