-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45475 from nextcloud/feat/add-support-for-webhooks
feat: Add support for webhook listeners
- Loading branch information
Showing
42 changed files
with
3,568 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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>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>WebhookListeners</namespace> | ||
|
||
<types> | ||
<filesystem/> | ||
</types> | ||
|
||
<category>customization</category> | ||
<website>https://github.com/nextcloud/server</website> | ||
<bugs>https://github.com/nextcloud/server/issues</bugs> | ||
<repository>https://github.com/nextcloud/server.git</repository> | ||
|
||
<dependencies> | ||
<nextcloud min-version="30" max-version="30"/> | ||
</dependencies> | ||
|
||
<commands> | ||
<command>OCA\WebhookListeners\Command\ListWebhooks</command> | ||
</commands> | ||
|
||
<settings> | ||
<admin>OCA\WebhookListeners\Settings\Admin</admin> | ||
</settings> | ||
</info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
// autoload.php @generated by Composer | ||
|
||
if (PHP_VERSION_ID < 50600) { | ||
if (!headers_sent()) { | ||
header('HTTP/1.1 500 Internal Server Error'); | ||
} | ||
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; | ||
if (!ini_get('display_errors')) { | ||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { | ||
fwrite(STDERR, $err); | ||
} elseif (!headers_sent()) { | ||
echo $err; | ||
} | ||
} | ||
trigger_error( | ||
$err, | ||
E_USER_ERROR | ||
); | ||
} | ||
|
||
require_once __DIR__ . '/composer/autoload_real.php'; | ||
|
||
return ComposerAutoloaderInitWebhookListeners::getLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"config" : { | ||
"vendor-dir": ".", | ||
"optimize-autoloader": true, | ||
"classmap-authoritative": true, | ||
"autoloader-suffix": "WebhookListeners" | ||
}, | ||
"autoload" : { | ||
"psr-4": { | ||
"OCA\\WebhookListeners\\": "../lib/" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.