There is **already** such a way, in the second level of bootstrap (loaded by the ``$kernel->loadClasses()`` call in the front controller)