Resolve "Introduce PSR-4 autoloading"
- Sep 20, 2021
-
-
Stein Magne Bjorklund authored7eed97c0
-
Stein Magne Bjorklund authoredaa5da6d4
-
Stein Magne Bjorklund authored
Do not implement properties or code. It is a interface and should be typed as one.
61a285ff -
Stein Magne Bjorklund authored
CI now run unit tests. This should make failing tests pass.
a0860532 -
Stein Magne Bjorklund authored
Util that enable us to upgrade parts of code base if needed.
b29ce011 -
Stein Magne Bjorklund authored
- Also remove extra include of settings. No longer needed.
8aecb872 -
Stein Magne Bjorklund authored
- Composer PSR-4 autoloading.
b3c27244 -
Stein Magne Bjorklund authored
- Reduce logic complexity. - Return early. Code get called on every request and should be fast. - Remove support for mirroring multiple uri. Code uses a long gone PHP function. Split this into a private method.
e30311d6 -
Stein Magne Bjorklund authored
- Also require the file. Force it to fail hard if not found.
e5cb9333 -
Stein Magne Bjorklund authored
Cleanup that improve code readability.
afc0f2d8 -
Stein Magne Bjorklund authoredd5d1b3b6
-
Stein Magne Bjorklund authored
First thing application do is loading the settings making sure that it is available.
d266155e -
Stein Magne Bjorklund authoredfb4d8a8f
-
Stein Magne Bjorklund authoredca82392b
-
Stein Magne Bjorklund authored
We cannot just remove data from common.inc.php The class expect and try to use it throwing errors/warning every time the application load.
8c02c800 -
Stein Magne Bjorklund authored
Needed by the application and we must make sure it is there. Anyone that does not like this can locally override this settings. One less settings that needs to live in settings.inc.php.
9500ac15 -
Stein Magne Bjorklund authored
Application default settings cannot have dependencies on the local user provided settings.
5b547fa5 -
Stein Magne Bjorklund authored
- Require the application default settings. Loadspkr needs it and have to stop if not present and not simply throw a notification. - Introduce a constant that points to where Loadspkr have been installed. Allows us to later move the common.inc.php without it breaks the bootstrap.
3c1dd3fe -
Stein Magne Bjorklund authored
Full autoload the application boostrap process.
0b83f6d1 -
Stein Magne Bjorklund authored
Addressing a old legacy bug. Making sure the file validate also make it easier to spot newly introduced errors and bugs.
1ffefcbc -
Stein Magne Bjorklund authored
We should not trust language " auto magic". Let us be sure we do a strict type check.
4c5377c2
-