Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
michanismus opened this issue May 6, 2015 · 3 comments
Closed

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

michanismus opened this issue May 6, 2015 · 3 comments

Comments

@michanismus
Copy link
Contributor

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 michanismus changed the title [2.0.x] Annotations Router with path "/" [2.0.x] Annotations Router with path "/" becomes empty pattern May 8, 2015
@baryshev
Copy link
Contributor

baryshev commented May 9, 2015

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

@michanismus
Copy link
Contributor Author

I'm using latest 2.0.x branch.

Sent from my iPhone

On May 10, 2015, at 5:50, Vadim Baryshev notifications@github.com wrote:

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


Reply to this email directly or view it on GitHub.

@michanismus
Copy link
Contributor Author

Works now with branch 2.0.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants