Skip to content

Commit 268a5d4

Browse files
committed
Merge pull request #12 from norkunas/2.0
Stop complaining about non-existent cache handler
2 parents 8c091c8 + ee13545 commit 268a5d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ClientConfiguration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function __construct(
2020
$this->parameters['event_dispatcher'] = $eventDispatcher;
2121
}
2222

23-
public function setCacheHandler(Cache $handler)
23+
public function setCacheHandler(Cache $handler = null)
2424
{
2525
$this->parameters['cache']['handler'] = $handler;
2626
}
@@ -32,4 +32,4 @@ public function all()
3232
{
3333
return $this->parameters;
3434
}
35-
}
35+
}

Resources/config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<argument>%tmdb.options%</argument>
3131

3232
<call method="setCacheHandler">
33-
<argument type="service" id="tmdb.cache_handler" />
33+
<argument type="service" id="tmdb.cache_handler" on-invalid="null" />
3434
</call>
3535
</service>
3636
</services>

0 commit comments

Comments
 (0)