cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[2.0.x] Annotations Router with path "/" becomes empty pattern

Open michanismus opened this issue 11 years ago • 3 comments

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.

michanismus avatar May 06 '15 06:05 michanismus

Seems to duplicates #1608. Fixed in 2.0.x branch.

baryshev avatar May 09 '15 21:05 baryshev

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.

michanismus avatar May 10 '15 00:05 michanismus

Works now with branch 2.0.x.

michanismus avatar May 12 '15 14:05 michanismus