3434use Exception ;
3535use OC \Core \Command \Base ;
3636use OCA \Circles \Db \MemberRequest ;
37+ use OCA \Circles \Exceptions \CircleNotFoundException ;
38+ use OCA \Circles \Exceptions \FederatedEventException ;
39+ use OCA \Circles \Exceptions \FederatedItemException ;
40+ use OCA \Circles \Exceptions \FederatedUserException ;
41+ use OCA \Circles \Exceptions \FederatedUserNotFoundException ;
42+ use OCA \Circles \Exceptions \InitiatorNotConfirmedException ;
43+ use OCA \Circles \Exceptions \InitiatorNotFoundException ;
44+ use OCA \Circles \Exceptions \InvalidIdException ;
3745use OCA \Circles \Exceptions \MemberDoesNotExistException ;
46+ use OCA \Circles \Exceptions \MemberNotFoundException ;
47+ use OCA \Circles \Exceptions \OwnerNotFoundException ;
48+ use OCA \Circles \Exceptions \RemoteInstanceException ;
49+ use OCA \Circles \Exceptions \RemoteNotFoundException ;
50+ use OCA \Circles \Exceptions \RemoteResourceNotFoundException ;
51+ use OCA \Circles \Exceptions \RequestBuilderException ;
52+ use OCA \Circles \Exceptions \SingleCircleNotFoundException ;
53+ use OCA \Circles \Exceptions \UnknownRemoteException ;
54+ use OCA \Circles \Exceptions \UserTypeNotFoundException ;
3855use OCA \Circles \Model \Member ;
3956use OCA \Circles \Service \FederatedUserService ;
4057use OCA \Circles \Service \MemberService ;
41- use OCA \Circles \Service \MembersService ;
4258use Symfony \Component \Console \Input \InputArgument ;
4359use Symfony \Component \Console \Input \InputInterface ;
4460use Symfony \Component \Console \Input \InputOption ;
@@ -59,7 +75,7 @@ class MembersRemove extends Base {
5975 /** @var FederatedUserService */
6076 private $ federatedUserService ;
6177
62- /** @var MembersService */
78+ /** @var MemberService */
6379 private $ memberService ;
6480
6581
@@ -95,8 +111,23 @@ protected function configure() {
95111 * @param OutputInterface $output
96112 *
97113 * @return int
98- * @throws MemberDoesNotExistException
99- * @throws Exception
114+ * @throws CircleNotFoundException
115+ * @throws FederatedEventException
116+ * @throws FederatedItemException
117+ * @throws FederatedUserException
118+ * @throws FederatedUserNotFoundException
119+ * @throws InitiatorNotConfirmedException
120+ * @throws InitiatorNotFoundException
121+ * @throws InvalidIdException
122+ * @throws MemberNotFoundException
123+ * @throws OwnerNotFoundException
124+ * @throws RemoteInstanceException
125+ * @throws RemoteNotFoundException
126+ * @throws RemoteResourceNotFoundException
127+ * @throws RequestBuilderException
128+ * @throws SingleCircleNotFoundException
129+ * @throws UnknownRemoteException
130+ * @throws UserTypeNotFoundException
100131 */
101132 protected function execute (InputInterface $ input , OutputInterface $ output ): int {
102133 $ memberId = $ input ->getArgument ('member_id ' );
0 commit comments