-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Remove OCP\App and OCP\BackgroundJob #32363
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
34dfef6 to
8c50c42
Compare
come-nc
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.
BackgroundJob was unused?
Any chance of removing OC_App?
I wish but let's do that step by step ;) there is a few api still missing in OCP\App\IAppManager to be a full replacement |
8c50c42 to
f5b7881
Compare
f5b7881 to
3d53626
Compare
3d53626 to
a36ff9e
Compare
| <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> | ||
| <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>"> | ||
| <link rel="apple-touch-icon" href="<?php print_unescaped(image_path('core', 'favicon-touch.png')); ?>"> | ||
| <link rel="mask-icon" sizes="any" href="<?php print_unescaped(image_path('core', 'favicon-mask.svg')); ?>" color="<?php p($theme->getColorPrimary()); ?>"> |
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.
{
"Exception": "RuntimeException",
"Message": "image not found: image:favicon-mask.svg webroot: serverroot:\/drone\/src",
"Code": 0,
"Trace": [
{
"file": "\/drone\/src\/lib\/private\/legacy\/template\/functions.php",
"line": 242,
"function": "imagePath",
"class": "OC\\URLGenerator",
"type": "->"
},
{
"file": "\/drone\/src\/core\/templates\/layout.user.php",
"line": 37,
"function": "image_path"
},
{
"file": "\/drone\/src\/lib\/private\/Template\/Base.php",
"line": 180,
"args": [
"\/drone\/src\/core\/templates\/layout.user.php"
],
"function": "include"
},
{
"file": "\/drone\/src\/lib\/private\/Template\/Base.php",
"line": 150,
"function": "load",
"class": "OC\\Template\\Base",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/private\/legacy\/OC_Template.php",
"line": 181,
"function": "fetchPage",
"class": "OC\\Template\\Base",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/private\/legacy\/OC_Template.php",
"line": 212,
"function": "fetchPage",
"class": "OC_Template",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/public\/AppFramework\/Http\/TemplateResponse.php",
"line": 213,
"function": "fetchPage",
"class": "OC_Template",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/private\/AppFramework\/Http\/Dispatcher.php",
"line": 178,
"function": "render",
"class": "OCP\\AppFramework\\Http\\TemplateResponse",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/private\/AppFramework\/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "\/drone\/src\/lib\/private\/Route\/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "\/drone\/src\/lib\/base.php",
"line": 1021,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "\/drone\/src\/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "\/drone\/src\/lib\/private\/URLGenerator.php",
"Line": 273,
"CustomMessage": "--"
}
computer is still a bit unhappy. some of the integration tests are failing.
PVince81
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.
👍 long overdue
I suggest you grep the release tarball in case you find more usages in apps
|
and there are conflicts |
a36ff9e to
79930f6
Compare
| <tr> | ||
| <td colspan="2" bgcolor="<?php p($theme->getColorPrimary());?>"> | ||
| <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/> | ||
| <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('core', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/> |
Check notice
Code scanning / Psalm
DeprecatedMethod
|
Possible performance regression detected Show Output |
|
CI is unhappy |
bab24e7 to
6658274
Compare
Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <[email protected]>
6658274 to
458c2fa
Compare
Both deprecated since NC 14
IAppManager is the replacement for OCP\App unfortunately it can't be
dependency injected in classes used by the installer otherwise the
the database connection is initialized too early
Test plan