]> source.dussan.org Git - nextcloud-server.git/commit
Add lazy events for the Node API 20597/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 22 Apr 2020 13:21:15 +0000 (15:21 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 28 May 2020 10:35:45 +0000 (12:35 +0200)
commit6aa6ab3e02c1ab50992c824b85ecc1a45988379c
treed09f950d2905d24497cea60fe3042dd2f62f89a1
parent1d469fc06e6a6755dbb5543b33fecb9ff2b57340
Add lazy events for the Node API

Right now if you want to get events via the Node API you have to have a
real instance of the Root. Which in turns sets up the whole FS.

We should make sure this is done lazy. Else enabling the preview
generator for example makes you setup the whole FS on each and every
authenticated call.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
21 files changed:
lib/base.php
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/private/Files/Node/HookConnector.php
lib/private/Server.php
lib/public/Files/Events/Node/AbstractNodeEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/AbstractNodesEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeCopiedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeCreatedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeReadEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeTouchedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/BeforeNodeWrittenEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeCopiedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeCreatedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeDeletedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeRenamedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeTouchedEvent.php [new file with mode: 0644]
lib/public/Files/Events/Node/NodeWrittenEvent.php [new file with mode: 0644]
tests/lib/Files/Node/HookConnectorTest.php