public function __construct(Application $app) { parent::__construct($app); $name = basename(get_class($this)); $name = strtolower($name); $name = str_replace('subscriber', '', $name); $this->params = $this->app['config']->get('http-client::subscribers.' . $name . '.config'); $this->cache =& $this->params['cache']; $this->cache_ttl =& $this->params['cache_ttl']; $this->store =& $this->app['cache']; }