Replace the CodeItNow module with the BarcodeLaminas module
Edit on GitHubBecause of a DMCA takedown of a third-party library that the spryker/code-it-now module uses, the spryker/code-it-now module is deprecated. Therefore, migration to the BarcodeLaminas module is required.
This document describes how to replace the deprecated CodeItNow module with BarcodeLaminas.
Migrating from CodeItNow to BarcodeLaminas
Estimated migration time: 10 minutes
To migrate from CodeItNow to BarcodeLaminas, follow these steps:
- Remove the deprecated
CodeItNowmodule:
composer remove spryker/code-it-now
- Install the replacement
BarcodeLaminasmodule:
composer require spryker/barcode-laminas
- In the dependency provider, replace the old
Code128BarcodeGeneratorPluginfromspryker/code-it-nowwith the new plugin fromspryker/barcode-laminas:
src/Pyz/Service/Barcode/BarcodeDependencyProvider.php
// Use the new plugin, remove the old one
use Spryker\Service\BarcodeLaminas\Plugin\Code128BarcodeGeneratorPlugin;
class BarcodeDependencyProvider extends SprykerDependencyProvider
{
/**
* @return array<\Spryker\Service\BarcodeExtension\Dependency\Plugin\BarcodeGeneratorPluginInterface>
*/
protected function getBarcodeGeneratorPlugins(): array
{
return [
new Code128BarcodeGeneratorPlugin(),
];
}
}
- Generate the transfer objects:
console transfer:generate
Verification
To verify that BarcodeLaminas has been installed and works correctly, in the Back Office, go to Catalog > Product Barcodes and check that barcode images are generated successfully.
Thank you!
For submitting the form