Skip to content

Commit

Permalink
FRW-8766: order matrix integration
Browse files Browse the repository at this point in the history
  • Loading branch information
kraal-spryker committed Sep 6, 2024
1 parent 6def0d8 commit dac580a
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 18 deletions.
131 changes: 114 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions config/Zed/cronjobs/jenkins.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@
'enable' => true,
];

$jobs[] = [
'name' => 'sync-order-matrix',
'command' => '$PHP_BIN vendor/bin/console order-matrix:sync',
'schedule' => '*/1 * * * *',
'enable' => true,
'global' => true,
];

/* Message broker */
if (Config::get(MessageBrokerConstants::IS_ENABLED)) {
$jobs[] = [
Expand Down
2 changes: 1 addition & 1 deletion config/Zed/navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<order-matrix>
<label>Order Matrix</label>
<title>Order Matrix</title>
<bundle>sales</bundle>
<bundle>order-matrix-gui</bundle>
<controller>matrix</controller>
<action>index</action>
<visible>1</visible>
Expand Down
2 changes: 2 additions & 0 deletions src/Pyz/Zed/Console/ConsoleDependencyProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
use Spryker\Zed\Oms\Communication\Console\CheckConditionConsole as OmsCheckConditionConsole;
use Spryker\Zed\Oms\Communication\Console\CheckTimeoutConsole as OmsCheckTimeoutConsole;
use Spryker\Zed\Oms\Communication\Console\ClearLocksConsole as OmsClearLocksConsole;
use Spryker\Zed\OrderMatrix\Communication\Console\OrderMatrixConsole;
use Spryker\Zed\PaymentDataImport\PaymentDataImportConfig;
use Spryker\Zed\PriceProduct\Communication\Console\PriceProductStoreOptimizeConsole;
use Spryker\Zed\PriceProductDataImport\PriceProductDataImportConfig;
Expand Down Expand Up @@ -400,6 +401,7 @@ protected function getConsoleCommands(Container $container): array
new MessageBrokerWorkerConsole(),
new ScopeCacheCollectorConsole(),
new DateTimeProductConfiguratorBuildFrontendConsole(),
new OrderMatrixConsole(),
];

$propelCommands = $container->getLocator()->propel()->facade()->getConsoleCommands();
Expand Down

0 comments on commit dac580a

Please sign in to comment.