]> git.mxchange.org Git - friendica.git/commit
Introduce DICE
authorPhilipp Holzer <admin+github@philipp.info>
Sat, 20 Jul 2019 23:22:10 +0000 (01:22 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Sat, 20 Jul 2019 23:22:10 +0000 (01:22 +0200)
commit55999730e0b4ad847bb891af0aa7dbfa531f998e
treeac2742775c54ced06664a6927beb3c9b77f7cb2d
parent5887b9c499b31f5ed777a8227dd418839b3652a9
Introduce DICE
- Adding dice library
- Adding dependency config

- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor

- Adjust entrypoints (index, console, worker, ..)

- Adding functional test for DI
- Fix tests because of refactorings
28 files changed:
bin/auth_ejabberd.php
bin/console.php
bin/daemon.php
bin/worker.php
index.php
src/App.php
src/App/Mode.php
src/App/Router.php
src/Core/L10n/L10n.php
src/Database/Database.php
src/Factory/ConfigFactory.php
src/Factory/DBFactory.php [deleted file]
src/Factory/DependencyFactory.php
src/Factory/LoggerFactory.php
src/Factory/ProfilerFactory.php [deleted file]
src/Util/BasePath.php
src/Util/ConfigFileLoader.php
src/Util/Profiler.php
static/dependencies.config.php [new file with mode: 0644]
tests/DatabaseTest.php
tests/functional/DependencyCheckTest.php [new file with mode: 0644]
tests/include/ApiTest.php
tests/src/App/ModeTest.php
tests/src/Database/DBATest.php
tests/src/Database/DBStructureTest.php
tests/src/Util/BasePathTest.php
tests/src/Util/Config/ConfigFileLoaderTest.php
tests/src/Util/ProfilerTest.php