Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
e99988b9
Commit
e99988b9
authored
Sep 11, 2015
by
Robin McCorkell
Browse files
Merge pull request #18676 from owncloud/ext-eventdispatcher
files_external event dispatcher
parents
ee1b57d1
3142a20f
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/files_external/appinfo/application.php
View file @
e99988b9
...
...
@@ -50,6 +50,11 @@ class Application extends App {
$this
->
loadBackends
();
$this
->
loadAuthMechanisms
();
// app developers: do NOT depend on this! it will disappear with oC 9.0!
\
OC
::
$server
->
getEventDispatcher
()
->
dispatch
(
'OCA\\Files_External::loadAdditionalBackends'
);
}
/**
...
...
lib/private/server.php
View file @
e99988b9
...
...
@@ -1061,4 +1061,36 @@ class Server extends SimpleContainer implements IServerContainer {
public
function
getSessionCryptoWrapper
()
{
return
$this
->
query
(
'CryptoWrapper'
);
}
/**
* Not a public API as of 8.2, wait for 9.0
* @return \OCA\Files_External\Service\BackendService
*/
public
function
getStoragesBackendService
()
{
return
\
OC_Mount_Config
::
$app
->
getContainer
()
->
query
(
'OCA\\Files_External\\Service\\BackendService'
);
}
/**
* Not a public API as of 8.2, wait for 9.0
* @return \OCA\Files_External\Service\GlobalStoragesService
*/
public
function
getGlobalStoragesService
()
{
return
\
OC_Mount_Config
::
$app
->
getContainer
()
->
query
(
'OCA\\Files_External\\Service\\GlobalStoragesService'
);
}
/**
* Not a public API as of 8.2, wait for 9.0
* @return \OCA\Files_External\Service\UserGlobalStoragesService
*/
public
function
getUserGlobalStoragesService
()
{
return
\
OC_Mount_Config
::
$app
->
getContainer
()
->
query
(
'OCA\\Files_External\\Service\\UserGlobalStoragesService'
);
}
/**
* Not a public API as of 8.2, wait for 9.0
* @return \OCA\Files_External\Service\UserStoragesService
*/
public
function
getUserStoragesService
()
{
return
\
OC_Mount_Config
::
$app
->
getContainer
()
->
query
(
'OCA\\Files_External\\Service\\UserStoragesService'
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment