mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
chore(webhooks): Rename webhooks application to webhook_listeners
There is already a webhooks application in the appstore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9449f6438d
commit
19bc3ed1e3
38 changed files with 126 additions and 124 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -45,7 +45,7 @@
|
|||
!/apps/twofactor_backupcodes
|
||||
!/apps/user_status
|
||||
!/apps/weather_status
|
||||
!/apps/webhooks
|
||||
!/apps/webhook_listeners
|
||||
!/apps/workflowengine
|
||||
/apps/files_external/3rdparty/irodsphp/PHPUnitTest
|
||||
/apps/files_external/3rdparty/irodsphp/web
|
||||
|
|
|
|||
|
|
@ -150,13 +150,13 @@ class ComposerStaticInitDAV
|
|||
'OCA\\DAV\\CardDAV\\MultiGetExportPlugin' => __DIR__ . '/..' . '/../lib/CardDAV/MultiGetExportPlugin.php',
|
||||
'OCA\\DAV\\CardDAV\\PhotoCache' => __DIR__ . '/..' . '/../lib/CardDAV/PhotoCache.php',
|
||||
'OCA\\DAV\\CardDAV\\Plugin' => __DIR__ . '/..' . '/../lib/CardDAV/Plugin.php',
|
||||
'OCA\\DAV\\CardDAV\\Security\\CardDavRateLimitingPlugin' => __DIR__ . '/..' . '/../lib/CardDAV/Security/CardDavRateLimitingPlugin.php',
|
||||
'OCA\\DAV\\CardDAV\\Sharing\\Backend' => __DIR__ . '/..' . '/../lib/CardDAV/Sharing/Backend.php',
|
||||
'OCA\\DAV\\CardDAV\\Sharing\\Service' => __DIR__ . '/..' . '/../lib/CardDAV/Sharing/Service.php',
|
||||
'OCA\\DAV\\CardDAV\\SyncService' => __DIR__ . '/..' . '/../lib/CardDAV/SyncService.php',
|
||||
'OCA\\DAV\\CardDAV\\SystemAddressbook' => __DIR__ . '/..' . '/../lib/CardDAV/SystemAddressbook.php',
|
||||
'OCA\\DAV\\CardDAV\\UserAddressBooks' => __DIR__ . '/..' . '/../lib/CardDAV/UserAddressBooks.php',
|
||||
'OCA\\DAV\\CardDAV\\Xml\\Groups' => __DIR__ . '/..' . '/../lib/CardDAV/Xml/Groups.php',
|
||||
'OCA\\DAV\\CardDAV\\Security\\CardDavRateLimitingPlugin' => __DIR__ . '/..' . '/../lib/CardDAV/Security/CardDavRateLimitingPlugin.php',
|
||||
'OCA\\DAV\\Command\\CreateAddressBook' => __DIR__ . '/..' . '/../lib/Command/CreateAddressBook.php',
|
||||
'OCA\\DAV\\Command\\CreateCalendar' => __DIR__ . '/..' . '/../lib/Command/CreateCalendar.php',
|
||||
'OCA\\DAV\\Command\\DeleteCalendar' => __DIR__ . '/..' . '/../lib/Command/DeleteCalendar.php',
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
<?xml version="1.0"?>
|
||||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||
<id>webhooks</id>
|
||||
<id>webhook_listeners</id>
|
||||
<name>Nextcloud webhook support</name>
|
||||
<summary>Nextcloud webhook support</summary>
|
||||
<description>Nextcloud webhook support</description>
|
||||
<version>1.0.0-dev</version>
|
||||
<licence>agpl</licence>
|
||||
<author>Côme Chilliet</author>
|
||||
<namespace>Webhooks</namespace>
|
||||
<namespace>WebhookListeners</namespace>
|
||||
|
||||
<types>
|
||||
<filesystem/>
|
||||
|
|
@ -24,10 +24,10 @@
|
|||
</dependencies>
|
||||
|
||||
<commands>
|
||||
<command>OCA\Webhooks\Command\ListWebhooks</command>
|
||||
<command>OCA\WebhookListeners\Command\ListWebhooks</command>
|
||||
</commands>
|
||||
|
||||
<settings>
|
||||
<admin>OCA\Webhooks\Settings\Admin</admin>
|
||||
<admin>OCA\WebhookListeners\Settings\Admin</admin>
|
||||
</settings>
|
||||
</info>
|
||||
|
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitWebhooks::getLoader();
|
||||
return ComposerAutoloaderInitWebhookListeners::getLoader();
|
||||
|
|
@ -3,11 +3,11 @@
|
|||
"vendor-dir": ".",
|
||||
"optimize-autoloader": true,
|
||||
"classmap-authoritative": true,
|
||||
"autoloader-suffix": "Webhooks"
|
||||
"autoloader-suffix": "WebhookListeners"
|
||||
},
|
||||
"autoload" : {
|
||||
"psr-4": {
|
||||
"OCA\\Webhooks\\": "../lib/"
|
||||
"OCA\\WebhookListeners\\": "../lib/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = $vendorDir;
|
||||
|
||||
return array(
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'OCA\\WebhookListeners\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
|
||||
'OCA\\WebhookListeners\\BackgroundJobs\\WebhookCall' => $baseDir . '/../lib/BackgroundJobs/WebhookCall.php',
|
||||
'OCA\\WebhookListeners\\Command\\ListWebhooks' => $baseDir . '/../lib/Command/ListWebhooks.php',
|
||||
'OCA\\WebhookListeners\\Controller\\WebhooksController' => $baseDir . '/../lib/Controller/WebhooksController.php',
|
||||
'OCA\\WebhookListeners\\Db\\AuthMethod' => $baseDir . '/../lib/Db/AuthMethod.php',
|
||||
'OCA\\WebhookListeners\\Db\\WebhookListener' => $baseDir . '/../lib/Db/WebhookListener.php',
|
||||
'OCA\\WebhookListeners\\Db\\WebhookListenerMapper' => $baseDir . '/../lib/Db/WebhookListenerMapper.php',
|
||||
'OCA\\WebhookListeners\\Listener\\WebhooksEventListener' => $baseDir . '/../lib/Listener/WebhooksEventListener.php',
|
||||
'OCA\\WebhookListeners\\Migration\\Version1000Date20240527153425' => $baseDir . '/../lib/Migration/Version1000Date20240527153425.php',
|
||||
'OCA\\WebhookListeners\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php',
|
||||
'OCA\\WebhookListeners\\Service\\PHPMongoQuery' => $baseDir . '/../lib/Service/PHPMongoQuery.php',
|
||||
'OCA\\WebhookListeners\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
|
||||
);
|
||||
|
|
@ -6,5 +6,5 @@ $vendorDir = dirname(__DIR__);
|
|||
$baseDir = $vendorDir;
|
||||
|
||||
return array(
|
||||
'OCA\\Webhooks\\' => array($baseDir . '/../lib'),
|
||||
'OCA\\WebhookListeners\\' => array($baseDir . '/../lib'),
|
||||
);
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitWebhooks
|
||||
class ComposerAutoloaderInitWebhookListeners
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
|
@ -22,12 +22,12 @@ class ComposerAutoloaderInitWebhooks
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitWebhooks', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitWebhookListeners', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitWebhooks', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitWebhookListeners', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitWebhooks::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitWebhookListeners::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
48
apps/webhook_listeners/composer/composer/autoload_static.php
Normal file
48
apps/webhook_listeners/composer/composer/autoload_static.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitWebhookListeners
|
||||
{
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'O' =>
|
||||
array (
|
||||
'OCA\\WebhookListeners\\' => 21,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'OCA\\WebhookListeners\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/../lib',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'OCA\\WebhookListeners\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
|
||||
'OCA\\WebhookListeners\\BackgroundJobs\\WebhookCall' => __DIR__ . '/..' . '/../lib/BackgroundJobs/WebhookCall.php',
|
||||
'OCA\\WebhookListeners\\Command\\ListWebhooks' => __DIR__ . '/..' . '/../lib/Command/ListWebhooks.php',
|
||||
'OCA\\WebhookListeners\\Controller\\WebhooksController' => __DIR__ . '/..' . '/../lib/Controller/WebhooksController.php',
|
||||
'OCA\\WebhookListeners\\Db\\AuthMethod' => __DIR__ . '/..' . '/../lib/Db/AuthMethod.php',
|
||||
'OCA\\WebhookListeners\\Db\\WebhookListener' => __DIR__ . '/..' . '/../lib/Db/WebhookListener.php',
|
||||
'OCA\\WebhookListeners\\Db\\WebhookListenerMapper' => __DIR__ . '/..' . '/../lib/Db/WebhookListenerMapper.php',
|
||||
'OCA\\WebhookListeners\\Listener\\WebhooksEventListener' => __DIR__ . '/..' . '/../lib/Listener/WebhooksEventListener.php',
|
||||
'OCA\\WebhookListeners\\Migration\\Version1000Date20240527153425' => __DIR__ . '/..' . '/../lib/Migration/Version1000Date20240527153425.php',
|
||||
'OCA\\WebhookListeners\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php',
|
||||
'OCA\\WebhookListeners\\Service\\PHPMongoQuery' => __DIR__ . '/..' . '/../lib/Service/PHPMongoQuery.php',
|
||||
'OCA\\WebhookListeners\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitWebhookListeners::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitWebhookListeners::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitWebhookListeners::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
|
Before Width: | Height: | Size: 808 B After Width: | Height: | Size: 808 B |
|
|
@ -7,10 +7,10 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\AppInfo;
|
||||
namespace OCA\WebhookListeners\AppInfo;
|
||||
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\Webhooks\Listener\WebhooksEventListener;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Listener\WebhooksEventListener;
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
|
|
@ -20,7 +20,7 @@ use Psr\Container\ContainerInterface;
|
|||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'webhooks';
|
||||
public const APP_ID = 'webhook_listeners';
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(self::APP_ID);
|
||||
|
|
@ -7,10 +7,10 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\BackgroundJobs;
|
||||
namespace OCA\WebhookListeners\BackgroundJobs;
|
||||
|
||||
use OCA\Webhooks\Db\AuthMethod;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Db\AuthMethod;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCP\AppFramework\Utility\ITimeFactory;
|
||||
use OCP\BackgroundJob\QueuedJob;
|
||||
use OCP\Http\Client\IClientService;
|
||||
|
|
@ -7,11 +7,11 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Command;
|
||||
namespace OCA\WebhookListeners\Command;
|
||||
|
||||
use OC\Core\Command\Base;
|
||||
use OCA\Webhooks\Db\WebhookListener;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Db\WebhookListener;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
|
|
@ -25,8 +25,8 @@ class ListWebhooks extends Base {
|
|||
protected function configure(): void {
|
||||
parent::configure();
|
||||
$this
|
||||
->setName('webhooks:list')
|
||||
->setDescription('Lists configured webhooks');
|
||||
->setName('webhook_listeners:list')
|
||||
->setDescription('Lists configured webhook listeners');
|
||||
}
|
||||
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
|
|
@ -7,11 +7,11 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Controller;
|
||||
namespace OCA\WebhookListeners\Controller;
|
||||
|
||||
use OCA\Webhooks\Db\AuthMethod;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\Webhooks\ResponseDefinitions;
|
||||
use OCA\WebhookListeners\Db\AuthMethod;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\ResponseDefinitions;
|
||||
use OCP\AppFramework\Http\Attribute\ApiRoute;
|
||||
use OCP\AppFramework\Http\Attribute\AuthorizedAdminSetting;
|
||||
use OCP\AppFramework\Http\Attribute\OpenAPI;
|
||||
|
|
@ -48,7 +48,7 @@ class WebhooksController extends OCSController {
|
|||
* 200: Webhook registrations returned
|
||||
*/
|
||||
#[ApiRoute(verb: 'GET', url: '/api/v1/webhooks')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\Webhooks\Settings\Admin')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\WebhookListeners\Settings\Admin')]
|
||||
public function index(): DataResponse {
|
||||
$webhookListeners = $this->mapper->getAll();
|
||||
|
||||
|
|
@ -65,7 +65,7 @@ class WebhooksController extends OCSController {
|
|||
* 200: Webhook registration returned
|
||||
*/
|
||||
#[ApiRoute(verb: 'GET', url: '/api/v1/webhooks/{id}')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\Webhooks\Settings\Admin')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\WebhookListeners\Settings\Admin')]
|
||||
public function show(int $id): DataResponse {
|
||||
return new DataResponse($this->mapper->getById($id));
|
||||
}
|
||||
|
|
@ -90,7 +90,7 @@ class WebhooksController extends OCSController {
|
|||
* @throws OCSException Other error
|
||||
*/
|
||||
#[ApiRoute(verb: 'POST', url: '/api/v1/webhooks')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\Webhooks\Settings\Admin')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\WebhookListeners\Settings\Admin')]
|
||||
public function create(
|
||||
string $httpMethod,
|
||||
string $uri,
|
||||
|
|
@ -149,7 +149,7 @@ class WebhooksController extends OCSController {
|
|||
* @throws OCSException Other error
|
||||
*/
|
||||
#[ApiRoute(verb: 'POST', url: '/api/v1/webhooks/{id}')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\Webhooks\Settings\Admin')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\WebhookListeners\Settings\Admin')]
|
||||
public function update(
|
||||
int $id,
|
||||
string $httpMethod,
|
||||
|
|
@ -203,7 +203,7 @@ class WebhooksController extends OCSController {
|
|||
* @throws OCSException Other error
|
||||
*/
|
||||
#[ApiRoute(verb: 'DELETE', url: '/api/v1/webhooks/{id}')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\Webhooks\Settings\Admin')]
|
||||
#[AuthorizedAdminSetting(settings:'OCA\WebhookListeners\Settings\Admin')]
|
||||
public function destroy(int $id): DataResponse {
|
||||
try {
|
||||
$deleted = $this->mapper->deleteById($id);
|
||||
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Db;
|
||||
namespace OCA\WebhookListeners\Db;
|
||||
|
||||
enum AuthMethod: string {
|
||||
case None = 'none';
|
||||
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Db;
|
||||
namespace OCA\WebhookListeners\Db;
|
||||
|
||||
use OCP\AppFramework\Db\Entity;
|
||||
use OCP\Security\ICrypto;
|
||||
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Db;
|
||||
namespace OCA\WebhookListeners\Db;
|
||||
|
||||
use OCP\AppFramework\Db\DoesNotExistException;
|
||||
use OCP\AppFramework\Db\MultipleObjectsReturnedException;
|
||||
|
|
@ -7,11 +7,11 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Listener;
|
||||
namespace OCA\WebhookListeners\Listener;
|
||||
|
||||
use OCA\Webhooks\BackgroundJobs\WebhookCall;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\Webhooks\Service\PHPMongoQuery;
|
||||
use OCA\WebhookListeners\BackgroundJobs\WebhookCall;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Service\PHPMongoQuery;
|
||||
use OCP\BackgroundJob\IJobList;
|
||||
use OCP\EventDispatcher\Event;
|
||||
use OCP\EventDispatcher\IEventListener;
|
||||
|
|
@ -7,10 +7,10 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Migration;
|
||||
namespace OCA\WebhookListeners\Migration;
|
||||
|
||||
use Closure;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCP\DB\ISchemaWrapper;
|
||||
use OCP\DB\Types;
|
||||
use OCP\Migration\IOutput;
|
||||
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks;
|
||||
namespace OCA\WebhookListeners;
|
||||
|
||||
/**
|
||||
* @psalm-type WebhooksListenerInfo = array{
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Service;
|
||||
namespace OCA\WebhookListeners\Service;
|
||||
|
||||
use Exception;
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Settings;
|
||||
namespace OCA\WebhookListeners\Settings;
|
||||
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\IL10N;
|
||||
|
|
@ -736,4 +736,4 @@
|
|||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
}
|
||||
|
|
@ -7,10 +7,10 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Tests\Db;
|
||||
namespace OCA\WebhookListeners\Tests\Db;
|
||||
|
||||
use OCA\Webhooks\Db\AuthMethod;
|
||||
use OCA\Webhooks\Db\WebhookListenerMapper;
|
||||
use OCA\WebhookListeners\Db\AuthMethod;
|
||||
use OCA\WebhookListeners\Db\WebhookListenerMapper;
|
||||
use OCP\Files\Events\Node\NodeWrittenEvent;
|
||||
use OCP\ICacheFactory;
|
||||
use OCP\IDBConnection;
|
||||
|
|
@ -7,9 +7,9 @@ declare(strict_types=1);
|
|||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
namespace OCA\Webhooks\Tests\Service;
|
||||
namespace OCA\WebhookListeners\Tests\Service;
|
||||
|
||||
use OCA\Webhooks\Service\PHPMongoQuery;
|
||||
use OCA\WebhookListeners\Service\PHPMongoQuery;
|
||||
use OCP\Files\Events\Node\NodeWrittenEvent;
|
||||
use Test\TestCase;
|
||||
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<?php
|
||||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = $vendorDir;
|
||||
|
||||
return array(
|
||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
||||
'OCA\\Webhooks\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
|
||||
'OCA\\Webhooks\\BackgroundJobs\\WebhookCall' => $baseDir . '/../lib/BackgroundJobs/WebhookCall.php',
|
||||
'OCA\\Webhooks\\Command\\ListWebhooks' => $baseDir . '/../lib/Command/ListWebhooks.php',
|
||||
'OCA\\Webhooks\\Controller\\WebhooksController' => $baseDir . '/../lib/Controller/WebhooksController.php',
|
||||
'OCA\\Webhooks\\Db\\AuthMethod' => $baseDir . '/../lib/Db/AuthMethod.php',
|
||||
'OCA\\Webhooks\\Db\\WebhookListener' => $baseDir . '/../lib/Db/WebhookListener.php',
|
||||
'OCA\\Webhooks\\Db\\WebhookListenerMapper' => $baseDir . '/../lib/Db/WebhookListenerMapper.php',
|
||||
'OCA\\Webhooks\\Listener\\WebhooksEventListener' => $baseDir . '/../lib/Listener/WebhooksEventListener.php',
|
||||
'OCA\\Webhooks\\Migration\\Version1000Date20240527153425' => $baseDir . '/../lib/Migration/Version1000Date20240527153425.php',
|
||||
'OCA\\Webhooks\\ResponseDefinitions' => $baseDir . '/../lib/ResponseDefinitions.php',
|
||||
'OCA\\Webhooks\\Service\\PHPMongoQuery' => $baseDir . '/../lib/Service/PHPMongoQuery.php',
|
||||
'OCA\\Webhooks\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
|
||||
);
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
|
||||
// autoload_static.php @generated by Composer
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitWebhooks
|
||||
{
|
||||
public static $prefixLengthsPsr4 = array (
|
||||
'O' =>
|
||||
array (
|
||||
'OCA\\Webhooks\\' => 13,
|
||||
),
|
||||
);
|
||||
|
||||
public static $prefixDirsPsr4 = array (
|
||||
'OCA\\Webhooks\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/../lib',
|
||||
),
|
||||
);
|
||||
|
||||
public static $classMap = array (
|
||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
||||
'OCA\\Webhooks\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
|
||||
'OCA\\Webhooks\\BackgroundJobs\\WebhookCall' => __DIR__ . '/..' . '/../lib/BackgroundJobs/WebhookCall.php',
|
||||
'OCA\\Webhooks\\Command\\ListWebhooks' => __DIR__ . '/..' . '/../lib/Command/ListWebhooks.php',
|
||||
'OCA\\Webhooks\\Controller\\WebhooksController' => __DIR__ . '/..' . '/../lib/Controller/WebhooksController.php',
|
||||
'OCA\\Webhooks\\Db\\AuthMethod' => __DIR__ . '/..' . '/../lib/Db/AuthMethod.php',
|
||||
'OCA\\Webhooks\\Db\\WebhookListener' => __DIR__ . '/..' . '/../lib/Db/WebhookListener.php',
|
||||
'OCA\\Webhooks\\Db\\WebhookListenerMapper' => __DIR__ . '/..' . '/../lib/Db/WebhookListenerMapper.php',
|
||||
'OCA\\Webhooks\\Listener\\WebhooksEventListener' => __DIR__ . '/..' . '/../lib/Listener/WebhooksEventListener.php',
|
||||
'OCA\\Webhooks\\Migration\\Version1000Date20240527153425' => __DIR__ . '/..' . '/../lib/Migration/Version1000Date20240527153425.php',
|
||||
'OCA\\Webhooks\\ResponseDefinitions' => __DIR__ . '/..' . '/../lib/ResponseDefinitions.php',
|
||||
'OCA\\Webhooks\\Service\\PHPMongoQuery' => __DIR__ . '/..' . '/../lib/Service/PHPMongoQuery.php',
|
||||
'OCA\\Webhooks\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
|
||||
);
|
||||
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitWebhooks::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitWebhooks::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitWebhooks::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
}
|
||||
|
|
@ -9,5 +9,6 @@ return array(
|
|||
'OC\\Core\\' => array($baseDir . '/core'),
|
||||
'OC\\' => array($baseDir . '/lib/private'),
|
||||
'OCP\\' => array($baseDir . '/lib/public'),
|
||||
'Bamarni\\Composer\\Bin\\' => array($vendorDir . '/bamarni/composer-bin-plugin/src'),
|
||||
'' => array($baseDir . '/lib/private/legacy'),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
<directory name="apps/user_ldap"/>
|
||||
<directory name="apps/user_status"/>
|
||||
<directory name="apps/weather_status"/>
|
||||
<directory name="apps/webhook_listeners"/>
|
||||
<directory name="apps/workflowengine"/>
|
||||
<directory name="core"/>
|
||||
<directory name="lib"/>
|
||||
|
|
|
|||
|
|
@ -24,4 +24,4 @@ enableApp('provisioning_api');
|
|||
enableApp('federation');
|
||||
enableApp('federatedfilesharing');
|
||||
enableApp('admin_audit');
|
||||
enableApp('webhooks');
|
||||
enableApp('webhook_listeners');
|
||||
|
|
|
|||
Loading…
Reference in a new issue