wrong use of the boot function?

In Silex, as it is now, the service should be registered in through register function, not the boot function