# How to get Enlight\_Event\_EventArgs $arguments in front end plugin php action function

**URL:** <https://forum.shopware.com/t/how-to-get-enlight-event-eventargs-arguments-in-front-end-plugin-php-action-function/35390>\
**Category:** Programmierung\
**Created:** [18. März 2016 um 19:35 UTC](https://forum.shopware.com/t/how-to-get-enlight-event-eventargs-arguments-in-front-end-plugin-php-action-function/35390 "2016-03-18T19:35:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayzee](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jayzee](https://forum.shopware.com/u/jayzee)\
**Post date:** [18. März 2016 um 19:35 UTC](https://forum.shopware.com/t/how-to-get-enlight-event-eventargs-arguments-in-front-end-plugin-php-action-function/35390/1 "2016-03-18T19:35:38Z")

</div>

Hi i want&nbsp;Enlight\_Event\_EventArgs $arguments in class Shopware\_Controllers\_Frontend\_test&nbsp;extends Enlight\_Controller\_Action function name &nbsp;public function createNewId()&nbsp;

Thank you in advance

---

<div class="post-metadata">

**Author:** ![marcuskreusch](https://avatars.discourse-cdn.com/v4/letter/m/b5ac83/32.png) [@marcuskreusch](https://forum.shopware.com/u/marcuskreusch)\
**Post date:** [19. März 2016 um 10:53 UTC](https://forum.shopware.com/t/how-to-get-enlight-event-eventargs-arguments-in-front-end-plugin-php-action-function/35390/2 "2016-03-19T10:53:05Z")

</div>

Hi jayzee,

I’m afraid, we cannot help you without further detail about what you would like to accomplish.  
Could you write a few lines more, please?

Best regards  
Marcus

---

<div class="post-metadata">

**Author:** ![DanielNogel](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@DanielNogel](https://forum.shopware.com/u/DanielNogel)\
**Post date:** [19. März 2016 um 16:22 UTC](https://forum.shopware.com/t/how-to-get-enlight-event-eventargs-arguments-in-front-end-plugin-php-action-function/35390/3 "2016-03-19T16:22:13Z")

</div>

Hi jayzee,

in addtion to Marcus: „Enlight\_Event\_EventArgs“ ist just a context object used for events. So generally don’t want / need it in your controllers. Usually you can access all relevant services from your controller directly:

- $this-\>View()
- $this-\>Request()
- $this-\>Response()
- $this-\>get(‚some\_service‘)

Daniel
