The purpose of the event in User Mapper of ZfcUser Module?

For programming and general questions on Zend Framework
Post Reply
beanoefc
Posts: 45
Joined: Wed Jun 23, 2010 9:05 pm

The purpose of the event in User Mapper of ZfcUser Module?

Post by beanoefc » Thu Sep 26, 2013 10:04 am

Hi Everyone,

In the last week i have picked up the ZF2. I have read the documentation and alot of blogs and belive I am familiar with the new concepts introduced in the ZF2. Albeit i am still learning. As a learning excercise i have been createing my own Authentication module. At the same time i havebeen looking through the ZfcUser module.

My question is regarding the event that is triggered in the User class in the Mapper section (https://github.com/ZF-Commons/ZfcUser/b ... r/User.php)

Code: Select all

$this->getEventManager()->trigger('find', $this, array('entity' => $entity));
I cannot work out what the purpose of this event is, or what it is triggering. I have searched through the entire module but im still at a loss.

Please couls someone explain to me the purpose of this event, and what it actually does ?

Regards,
-Ben

Post Reply