We have the following entry points for the application:
And there's of course a lot of duplicated code in them.
I've tried to identify the common logic and put it in a core/bootstrap file.
This is a PHP file, not a class, because it needs to be PHP 4 compatible. If you see a better way than this I'll gladly consider it, I'm not against having a raw PHP file but having a
Bootstrap class would allow to use private methods and eventually we might move the configuration of the container in there.
+1 for consistency!!