Commit 9f391389 authored by Kalinka's avatar Kalinka

fix BlockController requirements

parent 92a9ca9c
......@@ -177,7 +177,7 @@ class BlockController extends AbstractController
}
/**
* @Route("/block/height/{height}", name="block_details_height")
* @Route("/block/height/{height}", name="block_details_height", requirements={"height"="\d+"})
*/
public function blockDetailsHeight($height) {
$con = $this->entityManager->getConnection();
......@@ -191,7 +191,7 @@ class BlockController extends AbstractController
}
/**
* @Route("/block/{block_id}", name="block_details")
* @Route("/block/{block_id}", name="block_details", requirements={"block_id"="\d+"})
*/
public function blockDetails($block_id) {
$con = $this->entityManager->getConnection();
......@@ -205,7 +205,7 @@ class BlockController extends AbstractController
}
/**
* @Route("/{page}/{amount}", name="block_index", defaults={"page": 0, "amount": 0})
* @Route("/{page}/{amount}", name="block_index", defaults={"page": 0, "amount": 0}, requirements={"page"="\d+", "amount"="\d+"})
*/
public function index($page, $amount) {
$con = $this->entityManager->getConnection();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment