]> git.mxchange.org Git - friendica.git/commit
Introduce new Hook logic
authorPhilipp <admin@philipp.info>
Sun, 15 Jan 2023 21:31:19 +0000 (22:31 +0100)
committerPhilipp <admin@philipp.info>
Mon, 16 Jan 2023 21:20:33 +0000 (22:20 +0100)
commitf609e38600f54fe8465d1194008d823103f41baa
tree01250823801383798af751132cb18c8dc7c2490d
parentd17a21601c7153d9517230bc94078f24ba2f0ac6
Introduce new Hook logic
- InstanceManager for computing strategies and to allow decorators
- Adapting Core\Logger to use it
22 files changed:
src/Core/Hooks/Capabilities/IAmAStrategy.php [new file with mode: 0644]
src/Core/Hooks/Capabilities/ICanManageInstances.php [new file with mode: 0644]
src/Core/Hooks/Exceptions/HookInstanceException.php [new file with mode: 0644]
src/Core/Hooks/Exceptions/HookRegisterArgumentException.php [new file with mode: 0644]
src/Core/Hooks/Model/InstanceManager.php [new file with mode: 0644]
src/Core/Logger/Exception/LoggerInvalidException.php [new file with mode: 0644]
src/Core/Logger/Factory/Logger.php
src/Core/Logger/Type/StreamLogger.php
src/Core/Logger/Type/SyslogLogger.php
src/Database/Database.php
static/dependencies.config.php
tests/Util/CreateDatabaseTrait.php
tests/Util/Hooks/InstanceMocks/FakeInstance.php [new file with mode: 0644]
tests/Util/Hooks/InstanceMocks/FakeInstanceDecorator.php [new file with mode: 0644]
tests/Util/Hooks/InstanceMocks/IAmADecoratedInterface.php [new file with mode: 0644]
tests/functional/DependencyCheckTest.php
tests/src/Core/Cache/DatabaseCacheTest.php
tests/src/Core/Hooks/Model/InstanceManagerTest.php [new file with mode: 0644]
tests/src/Core/Logger/AbstractLoggerTest.php
tests/src/Core/Logger/StreamLoggerTest.php
tests/src/Core/Logger/SyslogLoggerTest.php
tests/src/Core/Logger/SyslogLoggerWrapper.php