]> git.mxchange.org Git - friendica.git/commit
Introduce dynamic hook loading
authorPhilipp <admin@philipp.info>
Sun, 2 Jul 2023 21:56:56 +0000 (23:56 +0200)
committerPhilipp <admin@philipp.info>
Sun, 16 Jul 2023 16:43:35 +0000 (18:43 +0200)
commit14b76e48f085a48ea44812cdc9057c7404f0102a
treeba6a72354526c3b84279f7c5e2dbf8d5225dcb8d
parentff092833aeb8fe4f2d5256c260cd08ca23fe7878
Introduce dynamic hook loading
- Dynamically load addon files
- Dynamically load hooks
- Rewrite Logger-logic to use new hook logic (Monolog is working again)
43 files changed:
bin/auth_ejabberd.php
bin/console.php
bin/daemon.php
bin/worker.php
index.php
src/Core/Addon/Capabilities/ICanLoadAddons.php [new file with mode: 0644]
src/Core/Addon/Exception/AddonInvalidConfigFileException.php [new file with mode: 0644]
src/Core/Addon/Model/AddonLoader.php [new file with mode: 0644]
src/Core/Hooks/Capabilities/HookType.php [new file with mode: 0644]
src/Core/Hooks/Capabilities/IAmAStrategy.php [deleted file]
src/Core/Hooks/Capabilities/ICanCreateInstances.php [new file with mode: 0644]
src/Core/Hooks/Capabilities/ICanManageInstances.php [deleted file]
src/Core/Hooks/Capabilities/ICanRegisterInstances.php [new file with mode: 0644]
src/Core/Hooks/Exceptions/HookConfigException.php [new file with mode: 0644]
src/Core/Hooks/Model/DiceInstanceManager.php [new file with mode: 0644]
src/Core/Hooks/Model/InstanceManager.php [deleted file]
src/Core/Hooks/Util/HookFileManager.php [new file with mode: 0644]
src/Core/Logger/Capabilities/ICheckLoggerSettings.php [new file with mode: 0644]
src/Core/Logger/Capabilities/IHaveCallIntrospections.php
src/Core/Logger/Capabilities/LogChannel.php [new file with mode: 0644]
src/Core/Logger/Exception/LogLevelException.php
src/Core/Logger/Exception/LoggerArgumentException.php
src/Core/Logger/Exception/LoggerException.php
src/Core/Logger/Exception/LoggerInvalidException.php [deleted file]
src/Core/Logger/Exception/LoggerUnusableException.php [new file with mode: 0644]
src/Core/Logger/Factory/AbstractLoggerTypeFactory.php [new file with mode: 0644]
src/Core/Logger/Factory/Logger.php
src/Core/Logger/Factory/ProfilerLogger.php [new file with mode: 0644]
src/Core/Logger/Factory/StreamLogger.php [new file with mode: 0644]
src/Core/Logger/Factory/SyslogLogger.php [new file with mode: 0644]
src/Core/Logger/Type/README.md [deleted file]
src/Core/Logger/Type/StreamLogger.php
src/Core/Logger/Type/SyslogLogger.php
src/Core/Logger/Util/FileSystem.php [new file with mode: 0644]
src/Core/Logger/Util/LoggerSettingsCheck.php [new file with mode: 0644]
src/DI.php
src/Module/Admin/Summary.php
src/Util/FileSystem.php [deleted file]
static/dependencies.config.php
static/hooks.config.php [new file with mode: 0644]
tests/Util/Hooks/InstanceMocks/FakeInstance.php
tests/src/Core/Hooks/Model/InstanceManagerTest.php
tests/src/Core/Logger/StreamLoggerTest.php