-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add redirect path Twig extension #43
Conversation
92fcfeb
to
40a2c58
Compare
3917f1c
to
f56bec3
Compare
$request->setSession($session); | ||
$container->get('request_stack')->push($request); | ||
|
||
$this->redirectPathExtension = $container->get('sylius_twig_extra.twig.extension.redirect_path'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This setup is extracted from Sylius Ui Bundle
|
||
public function testItReturnsGivenPathIfRouteHasSomeMoreConfiguration(): void | ||
{ | ||
$redirectPath = $this->redirectPathExtension->generateRedirectPath('/admin/ajax/products/search'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this test case is extracted from the UIBundle, and I don't understand what's the specificity of this route. I have to ask someone at Sylius to reproduce that kind of route here.
cd7cc9f
to
a0777d4
Compare
a0777d4
to
a65d35b
Compare
I think that will be better to implement this TwigExtension on AdminUi.... cause TwigExtra is a more generic package, not related to grid, resource etc... |
Replaced by #87 |
No description provided.