-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Micro collections not returning Router #1130
Comments
I think it is wrong document. |
Hi Dreamsxin what do you mean by wrong document? |
What I mean is that it should not return values. |
This is a bug. It is not really a problem if your are using get,put,delete, and post method, but it become a problem when using map. If the map can return Router interface, it can be called as $collection->map(...)->via(['POST','PUT']); I have reported similiar BUG in: #1037 |
Any chance anyone can look at this? |
This is the bug in the documentation — the methods should return Phalcon\Mvc\Micro\CollectionInterface, not Phalcon\Mvc\Router\RouteInterface |
This is fixed in 1.2.4/1.3.0 |
Hi Folks
I am writing some custom collections for my routes so I can seperate them into reasonable groups under a controller, and I have found a bug in the software.
The documentation states that the collection's get, put, post and delete methods will return an object implementing the Phalcon\Mvc\Router\RouteInterface interface, however after doing the following code the methods return null (or void).
This then returns:
Discovered this while trying to use the setName() method on the return of these route aditions.
The text was updated successfully, but these errors were encountered: