41
41
use OCA \Circles \Events \CircleMemberAddedEvent ;
42
42
use OCA \Circles \Events \MembershipsCreatedEvent ;
43
43
use OCA \Circles \Events \MembershipsRemovedEvent ;
44
+ use OCA \Circles \Events \RemovingCircleMemberEvent ;
44
45
use OCA \Circles \Events \RequestingCircleMemberEvent ;
45
46
use OCA \Circles \Handlers \WebfingerHandler ;
46
47
use OCA \Circles \Listeners \DeprecatedListener ;
50
51
use OCA \Circles \Listeners \Examples \ExampleRequestingCircleMember ;
51
52
use OCA \Circles \Listeners \Files \AddingMember as ListenerFilesAddingMember ;
52
53
use OCA \Circles \Listeners \Files \MemberAdded as ListenerFilesMemberAdded ;
53
- use OCA \Circles \Listeners \Files \MembershipsRemoved as ListenerFilesMembershipsRemoved ;
54
+ use OCA \Circles \Listeners \Files \RemovingMember as ListenerFilesRemovingMember ;
54
55
use OCA \Circles \Listeners \GroupCreated ;
55
56
use OCA \Circles \Listeners \GroupDeleted ;
56
57
use OCA \Circles \Listeners \GroupMemberAdded ;
62
63
use OCA \Circles \Notification \Notifier ;
63
64
use OCA \Circles \Service \ConfigService ;
64
65
use OCA \Circles \Service \DavService ;
65
- //use OCA\Files\App as FilesApp;
66
66
use OCP \App \ManagerEvent ;
67
67
use OCP \AppFramework \App ;
68
68
use OCP \AppFramework \Bootstrap \IBootContext ;
69
69
use OCP \AppFramework \Bootstrap \IBootstrap ;
70
70
use OCP \AppFramework \Bootstrap \IRegistrationContext ;
71
- use OCP \AppFramework \IAppContainer ;
72
71
use OCP \Files \Config \IMountProviderCollection ;
73
72
use OCP \Group \Events \GroupCreatedEvent ;
74
73
use OCP \Group \Events \GroupDeletedEvent ;
81
80
use Symfony \Component \EventDispatcher \GenericEvent ;
82
81
use Throwable ;
83
82
83
+ //use OCA\Files\App as FilesApp;
84
+
84
85
85
86
require_once __DIR__ . '/../../vendor/autoload.php ' ;
86
87
@@ -107,9 +108,6 @@ class Application extends App implements IBootstrap {
107
108
/** @var ConfigService */
108
109
private $ configService ;
109
110
110
- /** @var IAppContainer */
111
- private $ container ;
112
-
113
111
114
112
/**
115
113
* Application constructor.
@@ -143,9 +141,7 @@ public function register(IRegistrationContext $context): void {
143
141
// Local Events (for Files/Shares/Notifications management)
144
142
$ context ->registerEventListener (AddingCircleMemberEvent::class, ListenerFilesAddingMember::class);
145
143
$ context ->registerEventListener (CircleMemberAddedEvent::class, ListenerFilesMemberAdded::class);
146
- $ context ->registerEventListener (
147
- MembershipsRemovedEvent::class, ListenerFilesMembershipsRemoved::class
148
- );
144
+ $ context ->registerEventListener (RemovingCircleMemberEvent::class, ListenerFilesRemovingMember::class);
149
145
$ context ->registerEventListener (
150
146
RequestingCircleMemberEvent::class, ListenerNotificationsRequestingMember::class
151
147
);
0 commit comments