@@ 51-56 (lines=6) @@ | ||
48 | } |
|
49 | return new Removing($services); |
|
50 | } |
|
51 | if($input->getArgument('action') === 'enable'){ |
|
52 | if(!$input->getArgument('name')){ |
|
53 | throw new \InvalidArgumentException('name param is mandatory for this action'); |
|
54 | } |
|
55 | return new Enabling($services); |
|
56 | } |
|
57 | if($input->getArgument('action') === 'disable'){ |
|
58 | if(!$input->getArgument('name')){ |
|
59 | throw new \InvalidArgumentException('name param is mandatory for this action'); |
|
@@ 57-62 (lines=6) @@ | ||
54 | } |
|
55 | return new Enabling($services); |
|
56 | } |
|
57 | if($input->getArgument('action') === 'disable'){ |
|
58 | if(!$input->getArgument('name')){ |
|
59 | throw new \InvalidArgumentException('name param is mandatory for this action'); |
|
60 | } |
|
61 | return new Enabling($services); |
|
62 | } |
|
63 | if($input->getArgument('action') === 'run'){ |
|
64 | return new Running($services); |
|
65 | } |