@@ -106,15 +106,15 @@ $client = new \Tmdb\Client($token);
106106If you'd like to make unsecure requests ( by __ default__ we use secure requests ).
107107
108108``` php
109- $client = new \Tmdb\Client($token, null, false);
109+ $client = new \Tmdb\Client($token, ['secure' => false] );
110110```
111111
112112Caching is enabled by default, and uses a slow filesystem handler, which you can either:
113113
114114 Replace the `path` of the storage of, by supplying the option in the client:
115115
116116``` php
117- $client = new \Tmdb\Client($token, null, true, [
117+ $client = new \Tmdb\Client($token, [
118118 'cache' => [
119119 'enabled' => false,
120120 'path' => '/tmp/php-tmdb-api.log'
@@ -124,7 +124,7 @@ $client = new \Tmdb\Client($token, null, true, [
124124 Or replace the whole implementation with another CacheStorage of Doctrine:
125125
126126``` php
127- $client = new \Tmdb\Client($token, null, true, [
127+ $client = new \Tmdb\Client($token, [
128128 'cache' => [
129129 'enabled' => false,
130130 'storage' => new \Doctrine\Common\Cache\ArrayCache()
@@ -137,7 +137,7 @@ _This will only keep cache in memory during the length of the request, see the
137137If you want to add some logging capabilities ( requires ` monolog/monolog ` ), defaulting to the filesystem;
138138
139139``` php
140- $client = new \Tmdb\Client($token, null, true, [
140+ $client = new \Tmdb\Client($token, [
141141 'log' => [
142142 'enabled' => true,
143143 'path' => '/var/www/php-tmdb-api.log'
@@ -149,7 +149,7 @@ $client = new \Tmdb\Client($token, null, true, [
149149However during development you might like some console magic like ` ChromePHP ` or ` FirePHP ` ;
150150
151151``` php
152- $client = new \Tmdb\Client($token, null, true, [
152+ $client = new \Tmdb\Client($token, [
153153 'log' => [
154154 'enabled' => true,
155155 'handler' => new \Monolog\Handler\ChromePHPHandler()
0 commit comments