Skip to content

Commit

Permalink
rename catalog search form
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Jun 13, 2017
1 parent 28c6202 commit 75a8a0e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function searchAction(Request $request)
}

/* @var $form Form */
$form = $this->createForm('search', new SearchEntity())->handleRequest($request);
$form = $this->createForm('animedb_catalog_search', new SearchEntity())->handleRequest($request);
$pagination = null;
$result = ['list' => [], 'total' => 0];

Expand Down
2 changes: 1 addition & 1 deletion src/Form/Type/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ public function finishView(FormView $view, FormInterface $form, array $options)
*/
public function getName()
{
return 'search';
return 'animedb_catalog_search';
}
}
2 changes: 1 addition & 1 deletion src/Resources/config/services/forms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
anime_db.form.type.search:
class: AnimeDb\Bundle\CatalogBundle\Form\Type\Search
tags:
- { name: form.type, alias: search }
- { name: form.type, alias: animedb_catalog_search }
calls:
- [ setViewSorter, [ '@anime_db.form.view_sorter' ] ]
- [ setRouter, [ '@router' ] ]
Expand Down

0 comments on commit 75a8a0e

Please sign in to comment.