zfcuser add user role after registration
I'm using Zend Framework 2 with ZfcUser, BjyAuthorize and Doctrine for the database. Registration etc. works very well so far. My problem is, that registered users have no role assigned, so i want to add the role "user" to the user during registration. I think i could attach this to the "register" event, but i don't know how to do that. I hope someone can help me ... (i used this tutorial for setting up zfcuser etc. http://samminds.com/2013/03/zfcuser-bjyauthorize-and-doctrine-working-together/ ) public function onBootstrap(MvcEvent $e) { $zfcServiceEvents = $e->getApplication()-