Hi,
Thanks fabian.. for peoples information it will be fixed by this
patch, and will properly come in the next release:
https://github.com/symfony/symfony/commit/c536797cc9ee81986210cbcfbaf6c8337dfdad9e
Best regards,
Michael Holm
On Fri, Jun 17, 2011 at 1:55 PM, Fabien Potencier
fabien.potenc...@symfony-project.com wrote:
Can you send me the generated appdevUrlMatcher.php file?
Fabien
--
Fabien Potencier
Sensio CEO - Symfony lead developer
sensiolabs.com | symfony.com | fabien.potencier.org
Tél: +33 1 40 99 80 80
On 6/17/11 11:58 AM, Michael Holm wrote:
Hi,
I have a major problem with my routings, i've just upgraded to
Symfony2 Beta5, and suddenly something just didnt work no more..
I have deleted my cache, just in case of that i havent checked..
Then i saw the error:
1. in kernel.root_dir/cache/dev/appdevUrlMatcher.php at line 406 - +
403. return array ( '_controller' =
'Club\\ShopBundle\\Controller\\AdminTra
nsactionController::indexAction', '_route' =
'admin_shop_transaction',);
404. }
405.
406. throw 0 count($allow) ? new
MethodNotAllowedException(array_unique($allow)
) : new ResourceNotFoundException();
407. }
408. var_dump($pathinfo);
409. die();
Which led me to this auto generated file, and i saw i had 4 equal
lines like this:
if (0 === strpos($pathinfo, '/admin')) {
I can see that the route in in the autogenerated file, but its in an
admin section which will never be hit due to all the dublicated if
statements..
So.. that cannot be true? I will never end up in any of the if
statements since they are in the same level..
I use route annotations and here is a sample of my controller:
class AdminUserController extends Controller
{
/**
* @Route(/user)
* @Template()
*/
public function indexAction()
{
$em = $this-get('doctrine')-getEntityManager();
$filter =
$em-getRepository('ClubUserBundle:Filter')-findActive($this-get('security.context')-getToken()-getUser());
$order_by = array();
And a snippet from the routing.yml file:
_admin_user:
resource: @ClubUserBundle/Controller/AdminUserController.php
type: annotation
prefix: /admin
It worked perfectly in Beta4.. so, hope someone can help me..? It
really seems like a bug with the routing generator..
Best regards,
Michael Holm
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en