# How to use class events in Apps?

**URL:** <https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485>\
**Category:** Other Questions (EN)\
**Created:** [28. Oktober 2020 um 06:27 UTC](https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485 "2020-10-28T06:27:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [28. Oktober 2020 um 06:27 UTC](https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485/1 "2020-10-28T06:27:33Z")

</div>

Hi

I am using webhooks in my App

how to use LineItemAddedEvent in webhooks tags like the following

LineItemAddedEvent is a class name, not an event name.

how to use this type of event in Apps?

---

<div class="post-metadata">

**Author:** ![sfranze](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sfranze](https://forum.shopware.com/u/sfranze)\
**Post date:** [28. Oktober 2020 um 12:23 UTC](https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485/2 "2020-10-28T12:23:45Z")

</div>

Hi,

Right now we only support some specific events.

The events you can subscribe to are all event classes that implement the&nbsp;\Shopware\Core\Framework\Event\BusinessEventInterface interface as well as all \Shopware\Core\Framework\DataAbstractionLayer\Event\EntityWrittenContainerEvent events.

&nbsp;

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [28. Oktober 2020 um 12:46 UTC](https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485/3 "2020-10-28T12:46:27Z")

</div>

> [@sfranze schrieb:](https://forum.shopware.com/profile/31942/sfranze "sfranze")
> 
> Then which events can be used for product add, quantity update, and product remove from the cart?
> 
> &nbsp;

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [29. Oktober 2020 um 04:39 UTC](https://forum.shopware.com/t/how-to-use-class-events-in-apps/70485/4 "2020-10-29T04:39:03Z")

</div>

> [@sfranze wrote:](https://forum.shopware.com/profile/31942/sfranze "stress")
> 
> Hi
> 
> is it possible to add the LineItemAddedEvent in the following way in Shopware Apps?
> 
> &nbsp;
