Register the event subscriber in the boot method

The method register must never use a service.
Merge pull request #2 from GromNaN/master

Register the event subscriber in the boot method