We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c091c8 + ee13545 commit 268a5d4Copy full SHA for 268a5d4
ClientConfiguration.php
@@ -20,7 +20,7 @@ public function __construct(
20
$this->parameters['event_dispatcher'] = $eventDispatcher;
21
}
22
23
- public function setCacheHandler(Cache $handler)
+ public function setCacheHandler(Cache $handler = null)
24
{
25
$this->parameters['cache']['handler'] = $handler;
26
@@ -32,4 +32,4 @@ public function all()
32
33
return $this->parameters;
34
35
-}
+}
Resources/config/services.xml
@@ -30,7 +30,7 @@
30
<argument>%tmdb.options%</argument>
31
<call method="setCacheHandler">
- <argument type="service" id="tmdb.cache_handler" />
+ <argument type="service" id="tmdb.cache_handler" on-invalid="null" />
</call>
</service>
36
</services>
0 commit comments