-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Adding an array adapter #25892
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
Adding an array adapter #25892
Conversation
<tag name="cache.pool" clearer="cache.default_clearer" /> | ||
<tag name="monolog.logger" channel="cache" /> | ||
<argument>0</argument> <!-- default lifetime --> | ||
<call method="setLogger"> |
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.
There is no setLogger()
method in ArrayAdapter
, is there?
never mind, it is, ArrayAdapter
uses ArrayTrait
which in turn uses LoggerAwareTrait
did you test it? |
Yes, tested in a real project! And you're right about the ArrayAdapter argument thing, but it was already taken into account: symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/CachePoolPass.php Line 83 in 332ad0a
|
Why not using |
Thank you @weaverryan. |
This PR was merged into the 4.1-dev branch. Discussion ---------- Adding an array adapter | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | symfony/symfony-docs#9110 There's no simple way to *disable* caching (e.g. in the dev) environment. Setting up an array adapter is a very simple way to allow this :). Commits ------- f92e03d adding an array adapter
There's no simple way to disable caching (e.g. in the dev) environment. Setting up an array adapter is a very simple way to allow this :).