mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-03-10 10:29:20 +01:00
fix/add php doc
This commit is contained in:
parent
c419da84b4
commit
42ed81097a
@ -16,6 +16,7 @@
|
|||||||
namespace OCA\Bookmarks\AppInfo;
|
namespace OCA\Bookmarks\AppInfo;
|
||||||
|
|
||||||
use \OCP\AppFramework\App;
|
use \OCP\AppFramework\App;
|
||||||
|
use \OCP\IContainer;
|
||||||
use \OCA\Bookmarks\Controller\WebViewController;
|
use \OCA\Bookmarks\Controller\WebViewController;
|
||||||
use OCA\Bookmarks\Controller\Rest\TagsController;
|
use OCA\Bookmarks\Controller\Rest\TagsController;
|
||||||
use OCA\Bookmarks\Controller\Rest\BookmarkController;
|
use OCA\Bookmarks\Controller\Rest\BookmarkController;
|
||||||
@ -30,10 +31,10 @@ class Application extends App {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Controllers
|
* Controllers
|
||||||
* @param OC\AppFramework\Utility\SimpleContainer $c The Container instance
|
* @param IContainer $c The Container instance that handles the request
|
||||||
* that handles the request
|
|
||||||
*/
|
*/
|
||||||
$container->registerService('WebViewController', function($c) {
|
$container->registerService('WebViewController', function($c) {
|
||||||
|
/** @var IContainer $c */
|
||||||
return new WebViewController(
|
return new WebViewController(
|
||||||
$c->query('AppName'),
|
$c->query('AppName'),
|
||||||
$c->query('Request'),
|
$c->query('Request'),
|
||||||
@ -44,6 +45,7 @@ class Application extends App {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$container->registerService('BookmarkController', function($c) {
|
$container->registerService('BookmarkController', function($c) {
|
||||||
|
/** @var IContainer $c */
|
||||||
return new BookmarkController(
|
return new BookmarkController(
|
||||||
$c->query('AppName'),
|
$c->query('AppName'),
|
||||||
$c->query('Request'),
|
$c->query('Request'),
|
||||||
@ -53,6 +55,7 @@ class Application extends App {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$container->registerService('TagsController', function($c) {
|
$container->registerService('TagsController', function($c) {
|
||||||
|
/** @var IContainer $c */
|
||||||
return new TagsController(
|
return new TagsController(
|
||||||
$c->query('AppName'),
|
$c->query('AppName'),
|
||||||
$c->query('Request'),
|
$c->query('Request'),
|
||||||
@ -62,6 +65,7 @@ class Application extends App {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$container->registerService('PublicController', function($c) {
|
$container->registerService('PublicController', function($c) {
|
||||||
|
/** @var IContainer $c */
|
||||||
return new PublicController(
|
return new PublicController(
|
||||||
$c->query('AppName'),
|
$c->query('AppName'),
|
||||||
$c->query('Request'),
|
$c->query('Request'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user