Upgrade the ProductLabel module
Edit on GitHubUpgrading from version 0.1.5 to version 0.2.0
Version 0.2.0 of the Api
module introduces a default behavior to disable legacy Zed API for security reasons.
Some projects actively use and develop Zed API. To continue using legacy Zed API, one has to override the method isApiEnabled
of the ApiConfig
class in your project implementation:
- Create a new class
ApiConfig
in Pyz and extend the base class:
src/Pyz/Zed/Api/ApiConfig.php
namespace Pyz\Zed\Api;
use Spryker\Zed\Api\ApiConfig as SprykerApiConfig;
class ApiConfig extends SprykerApiConfig
{
}
- Override
isApiEnabled
method and return true:
namespace Pyz\Zed\Api;
use Spryker\Zed\Api\ApiConfig as SprykerApiConfig;
class ApiConfig extends SprykerApiConfig
{
/**
* @return bool
*/
public function isApiEnabled(): bool
{
return true;
}
}
- Check that API is available again.
Thank you!
For submitting the form