mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-25 18:41:05 +00:00
Migrate controller and action references
This commit is contained in:
parent
1c880883e2
commit
481283bbee
11 changed files with 29 additions and 29 deletions
|
@ -33,7 +33,7 @@ rest :
|
||||||
homepage:
|
homepage:
|
||||||
path: "/{page}"
|
path: "/{page}"
|
||||||
defaults:
|
defaults:
|
||||||
_controller: WallabagCoreBundle:Entry:showUnread
|
_controller: 'Wallabag\CoreBundle\Controller\EntryController::showUnreadAction'
|
||||||
page : 1
|
page : 1
|
||||||
requirements:
|
requirements:
|
||||||
page: \d+
|
page: \d+
|
||||||
|
@ -47,7 +47,7 @@ fos_oauth_server_token:
|
||||||
craue_config_settings_modify:
|
craue_config_settings_modify:
|
||||||
path: /settings
|
path: /settings
|
||||||
defaults:
|
defaults:
|
||||||
_controller: CraueConfigBundle:Settings:modify
|
_controller: 'Craue\ConfigBundle\Controller\SettingsController::modifyAction'
|
||||||
|
|
||||||
fos_js_routing:
|
fos_js_routing:
|
||||||
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
|
resource: "@FOSJsRoutingBundle/Resources/config/routing/routing.xml"
|
||||||
|
@ -64,34 +64,34 @@ fos_js_routing:
|
||||||
rss_to_atom_unread:
|
rss_to_atom_unread:
|
||||||
path: /{username}/{token}/unread.xml
|
path: /{username}/{token}/unread.xml
|
||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:redirect
|
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction'
|
||||||
route: unread_feed
|
route: unread_feed
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
||||||
rss_to_atom_archive:
|
rss_to_atom_archive:
|
||||||
path: /{username}/{token}/archive.xml
|
path: /{username}/{token}/archive.xml
|
||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:redirect
|
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction'
|
||||||
route: archive_feed
|
route: archive_feed
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
||||||
rss_to_atom_starred:
|
rss_to_atom_starred:
|
||||||
path: /{username}/{token}/starred.xml
|
path: /{username}/{token}/starred.xml
|
||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:redirect
|
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction'
|
||||||
route: starred_feed
|
route: starred_feed
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
||||||
rss_to_atom_all:
|
rss_to_atom_all:
|
||||||
path: /{username}/{token}/all.xml
|
path: /{username}/{token}/all.xml
|
||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:redirect
|
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction'
|
||||||
route: all_feed
|
route: all_feed
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
||||||
rss_to_atom_tags:
|
rss_to_atom_tags:
|
||||||
path: /{username}/{token}/tags/{slug}.xml
|
path: /{username}/{token}/tags/{slug}.xml
|
||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:redirect
|
_controller: 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction'
|
||||||
route: tag_feed
|
route: tag_feed
|
||||||
permanent: true
|
permanent: true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
annotations:
|
annotations:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagAnnotationBundle:WallabagAnnotation"
|
resource: 'Wallabag\AnnotationBundle\Controller\WallabagAnnotationController'
|
||||||
name_prefix: annotations_
|
name_prefix: annotations_
|
||||||
|
|
|
@ -26,7 +26,7 @@ class AnnotationRestController extends WallabagRestController
|
||||||
{
|
{
|
||||||
$this->validateAuthentication();
|
$this->validateAuthentication();
|
||||||
|
|
||||||
return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:getAnnotations', [
|
return $this->forward('Wallabag\AnnotationBundle\Controller\WallabagAnnotationController::getAnnotationsAction', [
|
||||||
'entry' => $entry,
|
'entry' => $entry,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ class AnnotationRestController extends WallabagRestController
|
||||||
{
|
{
|
||||||
$this->validateAuthentication();
|
$this->validateAuthentication();
|
||||||
|
|
||||||
return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:postAnnotation', [
|
return $this->forward('Wallabag\AnnotationBundle\Controller\WallabagAnnotationController::postAnnotationAction', [
|
||||||
'request' => $request,
|
'request' => $request,
|
||||||
'entry' => $entry,
|
'entry' => $entry,
|
||||||
]);
|
]);
|
||||||
|
@ -71,7 +71,7 @@ class AnnotationRestController extends WallabagRestController
|
||||||
{
|
{
|
||||||
$this->validateAuthentication();
|
$this->validateAuthentication();
|
||||||
|
|
||||||
return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:putAnnotation', [
|
return $this->forward('Wallabag\AnnotationBundle\Controller\WallabagAnnotationController::putAnnotationAction', [
|
||||||
'annotation' => $annotation,
|
'annotation' => $annotation,
|
||||||
'request' => $request,
|
'request' => $request,
|
||||||
]);
|
]);
|
||||||
|
@ -94,7 +94,7 @@ class AnnotationRestController extends WallabagRestController
|
||||||
{
|
{
|
||||||
$this->validateAuthentication();
|
$this->validateAuthentication();
|
||||||
|
|
||||||
return $this->forward('WallabagAnnotationBundle:WallabagAnnotation:deleteAnnotation', [
|
return $this->forward('Wallabag\AnnotationBundle\Controller\WallabagAnnotationController::deleteAnnotationAction', [
|
||||||
'annotation' => $annotation,
|
'annotation' => $annotation,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
entry:
|
entry:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:EntryRest"
|
resource: 'Wallabag\ApiBundle\Controller\EntryRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
search:
|
search:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:SearchRest"
|
resource: 'Wallabag\ApiBundle\Controller\SearchRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:TagRest"
|
resource: 'Wallabag\ApiBundle\Controller\TagRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
tagging_rule:
|
tagging_rule:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:TaggingRuleRest"
|
resource: 'Wallabag\ApiBundle\Controller\TaggingRuleRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
annotation:
|
annotation:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:AnnotationRest"
|
resource: 'Wallabag\ApiBundle\Controller\AnnotationRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
misc:
|
misc:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:WallabagRest"
|
resource: 'Wallabag\ApiBundle\Controller\WallabagRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
user:
|
user:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:UserRest"
|
resource: 'Wallabag\ApiBundle\Controller\UserRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
||||||
config:
|
config:
|
||||||
type: rest
|
type: rest
|
||||||
resource: "WallabagApiBundle:ConfigRest"
|
resource: 'Wallabag\ApiBundle\Controller\ConfigRestController'
|
||||||
name_prefix: api_
|
name_prefix: api_
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<div class="input-field baggy-add-tag" style="display: none">
|
<div class="input-field baggy-add-tag" style="display: none">
|
||||||
{{ render(controller("WallabagCoreBundle:Tag:addTagForm", {'id': entry.id})) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\TagController::addTagFormAction', {'id': entry.id})) }}
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
{% block title %}{{ 'entry.new.page_title'|trans }}{% endblock %}
|
{% block title %}{{ 'entry.new.page_title'|trans }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\EntryController::addEntryFormAction')) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<li class="menu new"><a href="{{ path('new') }}">{{ 'menu.left.save_link'|trans }}</a></li>
|
<li class="menu new"><a href="{{ path('new') }}">{{ 'menu.left.save_link'|trans }}</a></li>
|
||||||
<li style="position: relative;"><a href="javascript: void(null);" id="search">{{ 'menu.left.search'|trans }}</a>
|
<li style="position: relative;"><a href="javascript: void(null);" id="search">{{ 'menu.left.search'|trans }}</a>
|
||||||
<div id="search-form" class="messages info popup-form">
|
<div id="search-form" class="messages info popup-form">
|
||||||
{{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\EntryController::searchFormAction', {'currentRoute': app.request.attributes.get('_route')})) }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% if craue_setting('restricted_access') %}
|
{% if craue_setting('restricted_access') %}
|
||||||
|
|
|
@ -297,7 +297,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-field nav-panel-add-tag" style="display: none">
|
<div class="input-field nav-panel-add-tag" style="display: none">
|
||||||
{{ render(controller("WallabagCoreBundle:Tag:addTagForm", {'id': entry.id})) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\TagController::addTagFormAction', {'id': entry.id})) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
{% block title %}{{ 'entry.new.page_title'|trans }}{% endblock %}
|
{% block title %}{{ 'entry.new.page_title'|trans }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\EntryController::addEntryFormAction')) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -154,8 +154,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': current_route})) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\EntryController::searchFormAction', {'currentRoute': current_route})) }}
|
||||||
{{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
|
{{ render(controller('Wallabag\\CoreBundle\\Controller\\EntryController::addEntryFormAction')) }}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% block title %}{{ 'import.page_title'|trans }}{% endblock %}
|
{% block title %}{{ 'import.page_title'|trans }}{% endblock %}
|
||||||
|
|
||||||
{% block messages %}
|
{% block messages %}
|
||||||
{{ render(controller("WallabagImportBundle:Import:checkQueue")) }}
|
{{ render(controller('Wallabag\\ImportBundle\\Controller\\ImportController::checkQueueAction')) }}
|
||||||
|
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue