title | issue |
---|---|
Add storefront endpoints for app scripts |
NEXT-19568 |
- Added
\Shopware\Storefront\Framework\Script\Api\StorefrontHook
to provide the functionality to add custom endpoints in the storefront via scripts. - Added
\Shopware\Core\Framework\Script\Api\ScriptResponseFactoryFacade
to create responses for custom-endpoint scripts. - Added
\Shopware\Core\System\SalesChannel\SalesChannelContext::ensureLoggedIn()
helper method, to throw aCustomerNotLoggedInException
if the customer is not logged in.