This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Controller | |
{ | |
protected $user; | |
protected $service; | |
public function __construct(User $user, Service $service) | |
{ | |
$this->user = $user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Caching to filesystem using ZendCache | |
* Cache as much as possible, very convenient for dev (default ttl = 3600) | |
*/ | |
use Guzzle\Http\Client; | |
use Guzzle\Plugin\Cache\CachePlugin; | |
use Guzzle\Plugin\Cache\SkipRevalidation; | |
use Guzzle\Plugin\Cache\DefaultCacheStorage; |