Events Reference
All AgiqonConnector events with their full struct.
Session Login
ConnectorSessionLoginEvent
| Event name | agiqon_connector.connector_session.login |
| When | After any login (OCI + cXML) |
| Type | Name | Mutable | Description |
|---|---|---|---|
ConnectorSession | $connectorSession | no | Session data |
SalesChannelContext | $salesChannelContext | no | Shopware context |
Request | $request | no | HTTP request |
OciSessionLoginEvent (extends ConnectorSessionLoginEvent)
| Event name | agiqon_connector.oci_session.login |
| When | After OCI login |
Same struct as ConnectorSessionLoginEvent.
CxmlSessionLoginEvent (extends ConnectorSessionLoginEvent)
| Event name | agiqon_connector.cxml_session.login |
| When | After cXML login |
Same struct as ConnectorSessionLoginEvent.
tip
A listener on ConnectorSessionLoginEvent::EVENT_NAME is also called for OCI and cXML logins. A listener on OciSessionLoginEvent::EVENT_NAME is called only for OCI logins.
Session Logout
ConnectorSessionLogoutEvent
| Event name | agiqon_connector.connector_session.logout |
| When | On any logout (OCI + cXML) |
| Type | Name | Mutable | Description |
|---|---|---|---|
ConnectorSession | $connectorSession | no | Session data |
SalesChannelContext | $salesChannelContext | no | Shopware context |
Request | $request | no | HTTP request |
bool | $transferred | no | true if logout was via ?transferred=1; derived from $request->query |
OciSessionLogoutEvent (extends ConnectorSessionLogoutEvent)
| Event name | agiqon_connector.oci_session.logout |
| When | On OCI logout |
Same struct as ConnectorSessionLogoutEvent.
CxmlSessionLogoutEvent (extends ConnectorSessionLogoutEvent)
| Event name | agiqon_connector.cxml_session.logout |
| When | On cXML logout |
Same struct as ConnectorSessionLogoutEvent.
Transfer
ConnectorTransferEvent
| Event name | agiqon_connector.connector.transfer |
| When | On transfer (before the logout event) |
| Type | Name | Mutable | Description |
|---|---|---|---|
ConnectorSession | $connectorSession | no | Active session |
Cart | $cart | no | Cart at the time of transfer |
SalesChannelContext | $salesChannelContext | no | Shopware context of the buyer |
Response Generation
OciResponseGenerationEvent
| Event name | agiqon_connector.oci.response.generation |
| When | Just before the OCI form is returned |
| Type | Name | Mutable | Description |
|---|---|---|---|
OciFormData | $formData | yes (setFormData()) | Complete OCI form data |
SalesChannelContext | $context | no | Shopware context |
CxmlResponseGenerationEvent
| Event name | agiqon_connector.cxml.response.generation |
| When | Just before the cXML document is returned |
| Type | Name | Mutable | Description |
|---|---|---|---|
SimpleXMLElement | $cxml | yes (setCxml()) | Complete cXML document |
SalesChannelContext | $context | no | Shopware context |
Transmission
ConnectorCartLineItemResolveEvent
| Event name | agiqon_connector.transmission.cart_line_item_resolve |
| When | For each line item during cart reconstruction from a transmission payload |
| Type | Name | Mutable | Description |
|---|---|---|---|
array<string, mixed> | $item | no | Raw line item array from the deserialised payload |
string | $type | no | Shorthand: $item['type'] |
SalesChannelContext | $salesChannelContext | no | Shopware context for the rebuild |
?LineItem | $resolvedLineItem | yes (setResolvedLineItem()) | Resolved line item; null until a listener sets it |