1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- declare(strict_types=1);
- namespace Magento\InventorySales\Setup\Patch\Schema;
- use Magento\Framework\Setup\Patch\SchemaPatchInterface;
- use Magento\InventorySales\Setup\Operation\AssignWebsiteToDefaultStock;
- use Magento\Store\Setup\Patch\Schema\InitializeStoresAndWebsites;
- class InitializeWebsiteDefaultSock implements SchemaPatchInterface
- {
- /**
- * @var AssignWebsiteToDefaultStock
- */
- private $assignWebsiteToDefaultStock;
- public function __construct(AssignWebsiteToDefaultStock $assignWebsiteToDefaultStock)
- {
- $this->assignWebsiteToDefaultStock = $assignWebsiteToDefaultStock;
- }
- /**
- * @inheritDoc
- */
- public function apply()
- {
- $this->assignWebsiteToDefaultStock->execute();
- return $this;
- }
- /**
- * @inheritDoc
- */
- public static function getDependencies()
- {
- return [
- InitializeStoresAndWebsites::class
- ];
- }
- /**
- * @inheritDoc
- */
- public function getAliases()
- {
- return [];
- }
- }
|