spryker-demo / product-archiving-feature
Product archiving [feature]
1.0.0
2025-04-09 16:09 UTC
Requires
- php: >=8.2
- spryker-demo/product-archiving: ^1.0.0
- spryker-demo/product-archiving-gui: ^1.0.0
README
Installation
Install feature
composer require spryker-demo/product-archiving-feature
Add SprykerDemo
namespace to configuration
$config[KernelConstants::CORE_NAMESPACES] = [
'SprykerDemo',
...
];
Wire the table action expander plugin
# 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(),
];
}
}
Inherit project class ProductManagementCommunicationFactory
from the corresponding Spryker Demo one
# src/Pyz/Zed/ProductManagement/Communication/ProductManagementCommunicationFactory.php
use SprykerDemo\Zed\ProductManagement\Communication\ProductManagementCommunicationFactory as SprykerDemoProductManagementCommunicationFactory;
class ProductManagementCommunicationFactory extends SprykerDemoProductManagementCommunicationFactory
{
...
}
Build Propel classes
console propel:install
Generate Backoffice translations
console translator:generate-cache