Skip to content

Fixed the type of the twig.cache config option #10102

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

Merged
merged 1 commit into from
Jul 20, 2018

Conversation

javiereguiluz
Copy link
Member

Fixes #10101.

@javiereguiluz javiereguiluz added this to the 2.8 milestone Jul 20, 2018
@javiereguiluz javiereguiluz merged commit 0a2c44f into symfony:2.8 Jul 20, 2018
javiereguiluz added a commit that referenced this pull request Jul 20, 2018
…uiluz)

This PR was merged into the 2.8 branch.

Discussion
----------

Fixed the type of the twig.cache config option

Fixes #10101.

Commits
-------

0a2c44f Fixed the type of the twig.cache config option
@@ -121,13 +121,13 @@ application harder to maintain.
cache
~~~~~

**type**: ``string`` **default**: ``'%kernel.cache_dir%/twig'``
**type**: ``string`` | ``false`` | ``Twig\Cache\CacheInterface`` **default**: ``'%kernel.cache_dir%/twig'``
Copy link
Member

Choose a reason for hiding this comment

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

What does Twig\Cache\CacheInterface stand for here?

Copy link
Member Author

Choose a reason for hiding this comment

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

An class implementing that interface. I guessed that anyone so advanced (crazy?) to create their own cache implementation would understand it.

Copy link
Member

Choose a reason for hiding this comment

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

The point, if I don't miss anything, is that Twig expects an object implementing this interface. Every string will be interpreted as a path. But you cannot pass an object using the semantic configuration.

javiereguiluz added a commit that referenced this pull request Aug 9, 2018
This PR was merged into the 2.8 branch.

Discussion
----------

fix cache option data type

see #10102 (comment)

Commits
-------

607d23a fix cache option data type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants