mirror of
https://github.com/jbcr/core.git
synced 2026-04-03 06:42:30 +02:00
Some cleanup
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
|
||||
{% block main %}
|
||||
|
||||
<hr>
|
||||
{{ dump() }}
|
||||
<hr>
|
||||
|
||||
{% if record is defined %}
|
||||
|
||||
<h1>{{ record.title }}</h1>
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
{% set previous = record.previous('id') %}
|
||||
{% set next = record.next('id') %}
|
||||
|
||||
<hr>
|
||||
{{ dump(record) }}
|
||||
<hr>
|
||||
{{ dump(previous) }}
|
||||
<hr>
|
||||
{{ dump(next) }}
|
||||
|
||||
{% if previous or next %}
|
||||
<p class="meta">
|
||||
{% if previous %}
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
<h1>{{ record.title }}</h1>
|
||||
|
||||
{{ dump(record.definition) }}
|
||||
|
||||
<hr>
|
||||
|
||||
{% if record.image %}
|
||||
|
||||
@@ -35,7 +35,7 @@ class ListingController extends BaseController
|
||||
* @throws \Twig_Error_Runtime
|
||||
* @throws \Twig_Error_Syntax
|
||||
*/
|
||||
public function listing(ContentRepository $content, Request $request, string $contenttypeslug): Response
|
||||
public function listing(ContentRepository $contentRepository, Request $request, string $contenttypeslug): Response
|
||||
{
|
||||
$page = (int) $request->query->get('page', 1);
|
||||
|
||||
@@ -59,8 +59,8 @@ class ListingController extends BaseController
|
||||
* requirements={"contenttypeslug"="%bolt.requirement.contenttypes%"},
|
||||
* methods={"GET"})
|
||||
*/
|
||||
public function contentListing(ContentRepository $content, Request $request, string $contenttypeslug): Response
|
||||
public function contentListing(ContentRepository $contentRepository, Request $request, string $contenttypeslug): Response
|
||||
{
|
||||
return $this->listing($content, $request, $contenttypeslug);
|
||||
return $this->listing($contentRepository, $request, $contenttypeslug);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user