-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Remove \OCP\JSON #8943
Remove \OCP\JSON #8943
Conversation
They should be properly fixed at some point. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function checkLoggedIn() { |
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.
* | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function callCheck() { |
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.
* @deprecated 8.1.0 Use a AppFramework JSONResponse instead | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function success( $data = array() ) { |
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.
* @deprecated 8.1.0 Use a AppFramework JSONResponse instead | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function error( $data = array() ) { |
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.
* @deprecated 8.1.0 Use the AppFramework instead. It will automatically check if the app is enabled. | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function checkAppEnabled( $app ) { |
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.
* @deprecated 8.1.0 Use annotation based ACLs from the AppFramework instead | ||
* @suppress PhanDeprecatedFunction | ||
*/ | ||
public static function checkAdminUser() { |
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.
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.
We maybe should ping again the authors of those apps:
- files_opds
- files_reader
- files_snapshots
- piwik
- radio
- rainloop
- user_sql
- W2G2
- working2gether
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.
There are various places that use \\OC_JSON
instead of \OC_JSON
@@ -47,10 +47,10 @@ | |||
unset($version['path']); | |||
} | |||
|
|||
\OCP\JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); | |||
\\OC_JSON::success(array('data' => array('versions' => $versions, 'endReached' => $endReached))); |
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.
duplicate backslack 😉
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Codecov Report
@@ Coverage Diff @@
## master #8943 +/- ##
============================================
+ Coverage 51.88% 51.89% +0.01%
+ Complexity 25283 25277 -6
============================================
Files 1604 1603 -1
Lines 94918 94906 -12
Branches 1388 1388
============================================
+ Hits 49245 49251 +6
+ Misses 45673 45655 -18
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
It should of course be solved properly by moving those functions away from the private class. But I really want to get rid of this in the public interface so nobody that writes app can still use it.