I have very strange problem:
I have two routes: First one comes with wildcard:
/**
* @Route("/test/{test}", name="test")
* @param type $route
*/
public function testAction(Request $request, $test) {
return $this->render('resource/showResource.html.twig', [
'test' => $test
]);
}
Second one is without wildcard:
/**
* @Route("/test", name="test")
* @param type $route
*/
public function testAction(Request $request) {
return $this->render('resource/showResource.html.twig', [
'test' => 'something'
]);
}
The problem is when I'm running first one (http://localhost/app_dev.php/test/1) my CPU utilization reaches almost 100% (process: httpd.exe => Apache HTTP Server.
There is no such a problem with second one.
What thing could be causing this?