public function __construct(ImagineInterface $imagine, Config $config) { $this->imagine = $imagine; $this->config = $config; }