-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Port files trashbin events to IEventDispatcher/IEventListener #32018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9af5d5f to
7079039
Compare
artonge
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still a bunch of lint errors/warnings :)
cba371e to
ccad4d3
Compare
ccad4d3 to
0766816
Compare
|
As there is no feedback since a while I will close this ticket. |
2ceeac1 to
fa2936c
Compare
ad3e703 to
8a6761a
Compare
| public function handle(Event $event): void { | ||
| if ($event instanceof NodeWrittenEvent) { | ||
| // Resize trash | ||
| if (!empty($this->userId)) { |
Check notice
Code scanning / Psalm
RiskyTruthyFalsyComparison
| } | ||
|
|
||
| public function handle(Event $event): void { | ||
| if ($event instanceof BeforeNodeDeletedEvent) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
…Listener oc_hooks is deprecated and will at some point be removed Signed-off-by: Carl Schwan <[email protected]> Signed-off-by: Thomas Citharel <[email protected]> Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Hooks are cleared in test bootstrap so switching to events activates them in tests. Signed-off-by: Côme Chilliet <[email protected]>
98986b7 to
af0b8fb
Compare
… unlink Signed-off-by: Côme Chilliet <[email protected]>
|
The 4 ViewTest failures came from the fact that the trashbin wrapper is now registered and intercepts the rmdir and unlink calls to applies trashbin logic instead of actually deleting stuff. |
oc_hooks is deprecated and will at some point be removed