Upgrade the CompanyUserAuthRestApi module
Edit on GitHubUpgrading from version 1.* to version 2.*
CompanyUserAuthRestApi module version 2.0.0 brings the following major change:
Glue layer authentication has been moved from OauthCompanyUser
to CompanyUserAuthRestApi
.
To perform the upgrade:
- Update Composer:
composer require spryker/company-user-auth-rest-api: "^2.0.0" --update-with-dependencies
- Generate transfer objects:
vendor/bin/console transfer:generate
- In
\Pyz\Glue\AuthRestApi\AuthRestApiDependencyProvider::getRestUserExpanderPlugins()
replaceSpryker\Glue\OauthCompanyUser\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin
withSpryker\Glue\CompanyUserAuthRestApi\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin
:
- use Spryker\Glue\OauthCompanyUser\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin;
+ use Spryker\Glue\CompanyUserAuthRestApi\Plugin\AuthRestApi\CompanyUserRestUserMapperPlugin;
Estimated migration time: ~5 minutes
Thank you!
For submitting the form