Skip to content

Commit a1d3859

Browse files
committed
Ignore intentional use of discouraged function
1 parent 365236a commit a1d3859

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/Cron/Console/Command/CronCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* Copyright © Magento, Inc. All rights reserved.
45
* See COPYING.txt for license details.
@@ -135,10 +136,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
135136
$params[ProcessCronQueueObserver::STANDALONE_PROCESS_STARTED] = $bootstrapOptionValue;
136137
}
137138
}
139+
138140
/** @var Cron $cronObserver */
139141
$cronObserver = $objectManager->create(Cron::class, ['parameters' => $params]);
140142
$cronObserver->launch();
141143

144+
// phpcs:ignore Magento2.Functions.DiscouragedFunction.Discouraged
142145
if (posix_isatty(STDOUT)) {
143146
$output->writeln('<info>' . 'Ran jobs by schedule.' . '</info>');
144147
}

0 commit comments

Comments
 (0)