@bamarni your *custom* logic should be moved to the constructor, so that it is still called once the call to ``init`` is removed from the constructor.

As you can see, the kernel is not responsible to register the debug error handler anymore.