forked from friendica/friendica-addons
Introduce AddonLoader
This commit is contained in:
parent
49e5234872
commit
094b8c6875
141 changed files with 2920 additions and 3074 deletions
35
monolog/static/addon.config.php
Normal file
35
monolog/static/addon.config.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2010-2023, the Friendica project
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
$ADDON = [
|
||||
'name' => 'monolog',
|
||||
'description' => 'Monolog can send your logs to files, sockets, inboxes, database, etc..',
|
||||
'author' => [
|
||||
'name' => 'Philipp Holzer',
|
||||
'email' => 'admin@philipp.info',
|
||||
],
|
||||
'maintainer' => [
|
||||
'name' => 'Philipp Holzer',
|
||||
'email' => 'admin@philipp.info',
|
||||
],
|
||||
'version' => '1.0',
|
||||
'status' => 'supported',
|
||||
];
|
31
monolog/static/dependencies.config.php
Normal file
31
monolog/static/dependencies.config.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2010-2023, the Friendica project
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
use Dice\Dice;
|
||||
use Friendica\Addon\monolog\src\Factory\Monolog;
|
||||
|
||||
return [
|
||||
Monolog::class => [
|
||||
'call' => [
|
||||
['create', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
];
|
32
monolog/static/hooks.config.php
Normal file
32
monolog/static/hooks.config.php
Normal file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
/**
|
||||
* @copyright Copyright (C) 2010-2023, the Friendica project
|
||||
*
|
||||
* @license GNU AGPL version 3 or any later version
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\Addon\monolog\src\Factory\Monolog;
|
||||
use Friendica\Core\Addons\Capabilities\IManageAddons;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
return [
|
||||
IManageAddons::ADDON_HOOK_STRATEGIES => [
|
||||
LoggerInterface::class => [
|
||||
'monolog' => [Monolog::class, []],
|
||||
],
|
||||
],
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue