File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments