Completed
Pull Request — master (#1)
by Julien
03:42
created

AddCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 0
nc 1
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace TheAentMachine\AentDockerCompose\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\Output\OutputInterface;
9
use Symfony\Component\Yaml\Yaml;
10
11
class AddCommand extends Command
12
{
13
    protected function configure()
14
    {
15
        $this
16
            ->setName(Cst::ADD_EVENT)
17
            ->setDescription("event from aenthill")
18
            ->setHelp('TODO')
19
            ->addArgument('payload', InputArgument::OPTIONAL, "The payload of the event");
20
    }
21
22
    protected function execute(InputInterface $input, OutputInterface $output)
23
    {
24
        /*
25
        $output->writeln("asking for docker services..", OutputInterface::VERBOSITY_VERBOSE);
26
27
        $outStr = Utils::hermesUtil("dispatch", Cst::ASK_DOCKER_SERVICE_EVENT, "{}");
28
        $output->writeln($outStr);
29
        */
30
    }
31
}
32