Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
2f70a250
Unverified
Commit
2f70a250
authored
4 years ago
by
Morris Jobke
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23978 from nextcloud/enh/query_servercontainer_first
First query the server container
parents
46002a46
889bb44b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/private/ServerContainer.php
+6
-0
6 additions, 0 deletions
lib/private/ServerContainer.php
with
6 additions
and
0 deletions
lib/private/ServerContainer.php
+
6
−
0
View file @
2f70a250
...
@@ -133,6 +133,12 @@ class ServerContainer extends SimpleContainer {
...
@@ -133,6 +133,12 @@ class ServerContainer extends SimpleContainer {
public
function
query
(
string
$name
,
bool
$autoload
=
true
)
{
public
function
query
(
string
$name
,
bool
$autoload
=
true
)
{
$name
=
$this
->
sanitizeName
(
$name
);
$name
=
$this
->
sanitizeName
(
$name
);
try
{
return
parent
::
query
(
$name
,
false
);
}
catch
(
QueryException
$e
)
{
// Continue with general autoloading then
}
// In case the service starts with OCA\ we try to find the service in
// In case the service starts with OCA\ we try to find the service in
// the apps container first.
// the apps container first.
if
((
$appContainer
=
$this
->
getAppContainerForService
(
$name
))
!==
null
)
{
if
((
$appContainer
=
$this
->
getAppContainerForService
(
$name
))
!==
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment