To simplify getting up and running with the Aphiria exception handling library in an Aphiria application, it would be nice if we had a method in AphiriaComponentBuilder to bundle it, eg:
(new AphiriaComponentBuilder)->withExceptionHandlers($appBuilder);
Open Questions
[ ] Where does GlobalExceptionHandler get registered with PHP? In a bootstrapper? Or in the component builder?
This has been implemented. To keep the bootstrapper focused on just registering instances to the DI container, the actual registering of the global exception handler to PHP happens in the configuration library.
To simplify getting up and running with the Aphiria exception handling library in an Aphiria application, it would be nice if we had a method in
AphiriaComponentBuilder
to bundle it, eg:Open Questions
GlobalExceptionHandler
get registered with PHP? In a bootstrapper? Or in the component builder?