[GH-ISSUE #491] Using the app to send SMS for other purposes #105

Open
opened 2026-02-26 05:33:13 +03:00 by kerem · 3 comments
Owner

Originally created by @StCyr on GitHub (Apr 11, 2022).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/491

Hello, I'm looking for an app to send SMS for other purposes than logging in.

It looks like this app would do the trick if I could use the OCA\Service\Gateay\SMS\Gateway class from other apps.

I know using classes from the OCA namespace is generaly not advised but, hey, what are my other choices? ;-)

Originally created by @StCyr on GitHub (Apr 11, 2022). Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/491 Hello, I'm looking for an app to send SMS for other purposes than logging in. It looks like this app would do the trick if I could use the OCA\Service\Gateay\SMS\Gateway class from other apps. I know using classes from the OCA namespace is generaly not advised but, hey, what are my other choices? ;-)
Author
Owner

@vitormattos commented on GitHub (Apr 11, 2022):

You can use this class but if this class is modified, maybe can break your code.

A solution is contributing with development of this app making the code base best and more stable.

<!-- gh-comment-id:1095345759 --> @vitormattos commented on GitHub (Apr 11, 2022): You can use this class but if this class is modified, maybe can break your code. A solution is contributing with development of this app making the code base best and more stable.
Author
Owner

@StCyr commented on GitHub (Apr 11, 2022):

Yes, I can help maintaining this app.

The question is how can I do anything better than using the class from the OCA namespace? I think the only solution is to create an interface in the OCP namespace (hence in nextcloud/server). Am I right?

<!-- gh-comment-id:1095518153 --> @StCyr commented on GitHub (Apr 11, 2022): Yes, I can help maintaining this app. The question is how can I do anything better than using the class from the OCA namespace? I think the only solution is to create an interface in the OCP namespace (hence in nextcloud/server). Am I right?
Author
Owner

@vitormattos commented on GitHub (Apr 12, 2022):

I think that creating an interface in the OCP namespace will be hardy. Imagine the scenario when all app need to implement interface on server repository?

The problem is that you will need follow and help to development of this app to maintain him compatible with your app.

<!-- gh-comment-id:1097022529 --> @vitormattos commented on GitHub (Apr 12, 2022): I think that creating an interface in the OCP namespace will be hardy. Imagine the scenario when all app need to implement interface on server repository? The problem is that you will need follow and help to development of this app to maintain him compatible with your app.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/twofactor_gateway-nextcloud#105
No description provided.