8 use Symfony\Component\Console\Command\Command;
9 use Symfony\Component\Console\Input\InputInterface;
10 use Symfony\Component\Console\Output\OutputInterface;
11 use Symfony\Component\Console\Input\InputArgument;
12 use Magento\NewRelicReporting\Model\Apm\DeploymentsFactory;
20 private $deploymentsFactory;
25 private $serviceShellUser;
35 DeploymentsFactory $deploymentsFactory,
39 $this->deploymentsFactory = $deploymentsFactory;
40 $this->serviceShellUser = $serviceShellUser;
41 parent::__construct(
$name);
49 $this->setName(
"newrelic:create:deploy-marker");
50 $this->setDescription(
"Check the deploy queue for entries and create an appropriate deploy marker.")
53 InputArgument::REQUIRED,
58 InputArgument::REQUIRED,
63 InputArgument::OPTIONAL,
74 $this->deploymentsFactory->create()->setDeployment(
75 $input->getArgument(
'message'),
76 $input->getArgument(
'change_log'),
77 $this->serviceShellUser->get($input->getArgument(
'user'))
79 $output->writeln(
'<info>NewRelic deployment information sent</info>');
execute(InputInterface $input, OutputInterface $output)
__construct(DeploymentsFactory $deploymentsFactory, ServiceShellUser $serviceShellUser, $name=null)
if(!isset($_GET['name'])) $name