This package is developed in support for Shopgate Connect & Engage extensions for Shopware 6.
This module can be required as a dependency as a local package first, something along these lines:
cd extensions
git clone git@gitlab.com:apite/shopgate/connect-engage/shopware6-utility.git
git clone git@gitlab.com:apite/shopgate/connect-engage/ext-shopware6-cart.git
cd ext-shopware6-cart/extension
npm install --save ../../shopware6-utility
sgconnect extension create
# follow prompt to make a simple backend extension
cd ../../extensions/some-created-module/extension
ln -fs ../../shopware6-utility/src/services/apiManager.jsMake sure the extension is attached. Once that is done the apiManager file will be in the watch list & modifying it will reload the backend quickly.
- Install SW6 locally & enable xDebug
- Install SG Connect plugin on SW6
- Set an .env of
XDEBUG=1 - Set a breakpoint in PHP
- Run any pipeline endpoint call via Postman or using the CloudFlight App