Replaced $myComponent with $eventsManager

I have replaced the following line:

    //Bind the eventsManager to the instance
    $myComponent->setEventsManager($myComponent);

with:

    //Bind the eventsManager to the instance
    $myComponent->setEventsManager($eventsManager);
Merge pull request #209 from dedalozzo/patch-2

Replaced $myComponent with $eventsManager