#38132Move all init.php code in global scope into methods
Description
There is some code left in init.php that is not yet encapsuled in methods.
Move everything into methods in the bootstrap class.
There is some code left in init.php that is not yet encapsuled in methods.
Move everything into methods in the bootstrap class.