PHP code example of spryker-demo / product-archiving-feature
1. Go to this page and download the library: Download spryker-demo/product-archiving-feature library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
spryker-demo / product-archiving-feature example snippets
# src/Pyz/Zed/ProductManagement/ProductManagementDependencyProvider.php
use SprykerDemo\Zed\ProductArchivingGui\Communication\Plugin\ProductManagement\ProductArchivingProductVariantTableActionExpanderPlugin;
use SprykerDemo\Zed\ProductManagement\ProductManagementDependencyProvider as SprykerDemoProductManagementDependencyProvider;
class ProductManagementDependencyProvider extends SprykerDemoProductManagementDependencyProvider
{
...
/**
* @return array<\SprykerDemo\Zed\ProductManagement\Dependency\Plugin\ProductVariantTableActionExpanderPluginInterface>
*/
protected function getProductVariantTableActionExpanderPlugins(): array
{
return [
new ProductArchivingProductVariantTableActionExpanderPlugin(),
];
}
}
# src/Pyz/Zed/ProductManagement/Communication/ProductManagementCommunicationFactory.php
use SprykerDemo\Zed\ProductManagement\Communication\ProductManagementCommunicationFactory as SprykerDemoProductManagementCommunicationFactory;
class ProductManagementCommunicationFactory extends SprykerDemoProductManagementCommunicationFactory
{
...
}