cphalcon
cphalcon copied to clipboard
[2.0.x] Annotations Router with path "/" becomes empty pattern
Seems to be a bug.
If I create a route with:
$route = new \Phalcon\Mvc\Router\Route('/');
The route _pattern = "/" and the _compiledPattern = "/" as well.
For annotation like:
/**
* Slug index action.
*
* @Route("/", name="slug_index", locale=true)
*/
public function indexAction()
{
The route _pattern and _compiledPattern is empty "" and the route won't never match.
Seems to duplicates #1608. Fixed in 2.0.x branch.
I'm using latest 2.0.x branch.
Sent from my iPhone
On May 10, 2015, at 5:50, Vadim Baryshev [email protected] wrote:
Seems to duplicates #1608. Fixed in 2.0.x branch.
— Reply to this email directly or view it on GitHub.
Works now with branch 2.0.x.