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

Routing: Add completion and inspection for '_fragment' param #1071

Closed
cedricziel opened this issue Nov 9, 2017 · 1 comment
Closed

Routing: Add completion and inspection for '_fragment' param #1071

cedricziel opened this issue Nov 9, 2017 · 1 comment

Comments

@cedricziel
Copy link
Contributor

cedricziel commented Nov 9, 2017

It would be great if we could have the always available _fragment routing parameter (Symfony 3.2, https://symfony.com/blog/new-in-symfony-3-2-routing-improvements#added-support-for-url-fragments) and validate the fragment value for #es.

Example:

// example.com/admin/company/4711/customer#tab-users

return $this->redirectToRoute('foo_admin_company_customer_list', [
                'companyId' => $company->getId(),
                '_fragment' => 'tab-users',
            ]);

Validation for the inspection would need to check for absence of '#' character.

If you could tell me where this is placed best, i'd implement it mysql and send you a PR :)

@Haehnchen
Copy link
Owner

Its just one line for all Route Parameters eg PHP, Twig, ... :)
fr.adrienbrault.idea.symfony2plugin.routing.RouteHelper#getRouteParameterLookupElements

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

2 participants