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

Fixing issue when using "traditional" path notation #195

Merged
merged 4 commits into from
Oct 8, 2018
Merged

Fixing issue when using "traditional" path notation #195

merged 4 commits into from
Oct 8, 2018

Conversation

emulienfou
Copy link
Contributor

Relation issues: #194, #188 and PR #193

@lsmith77
Copy link
Contributor

lsmith77 commented Oct 6, 2018

@danrot can you verify that this fixes the issues?

I guess it would be good to have a test case to catch such a regression in the future.

));

if (false === $container->has('templating')) {
$twigFilesystemLoaderDefinition->setArguments(array(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using replaceArgument() instead to not break in case the second argument was changed somewhere else?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point @xabbuh, I will use the method replaceArgument().
However if the argument number for twig.loader.filesystem service change, the replaceArgument() method will throw an OutOfBoundsException.

@danrot
Copy link
Contributor

danrot commented Oct 8, 2018

@lsmith77 Yeah, fixes the issue :-) Thanks @emulienfou for fixing!

@lsmith77 lsmith77 merged commit f40637c into liip:master Oct 8, 2018
@lsmith77
Copy link
Contributor

lsmith77 commented Oct 8, 2018

ok tagged https://github.com/liip/LiipThemeBundle/releases/tag/1.6.1

would still be good to get a PR with a test case

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

Successfully merging this pull request may close these issues.

4 participants