Register the event subscriber in the boot method

The method `ServiceProviderInterface::register()` must never use a service.