diff --git a/src/Iveoles/Image/Image.php b/src/Iveoles/Image/Image.php index 0d463da..6c526f4 100644 --- a/src/Iveoles/Image/Image.php +++ b/src/Iveoles/Image/Image.php @@ -5,7 +5,6 @@ class Image { - private $worker; private $cache; private $cacheLifetime; // minutes @@ -13,19 +12,12 @@ class Image { private $pathString; - public function __construct($worker, \Illuminate\Cache\CacheManager $cache, $cacheLifetime, $pathString) { - $this->worker = $worker; + public function __construct(\Illuminate\Cache\CacheManager $cache, $cacheLifetime, $pathString) { $this->cache = $cache; $this->cacheLifetime = $cacheLifetime; $this->pathStringBase = $pathString . '?'; } - - public function getWorker() { - return $this->worker; - } - - public function responsive(/* any number of params */) { $params = func_get_args(); if(count($params) <= 1) { diff --git a/src/Iveoles/Image/ImageServiceProvider.php b/src/Iveoles/Image/ImageServiceProvider.php index 7eef600..01e72f0 100644 --- a/src/Iveoles/Image/ImageServiceProvider.php +++ b/src/Iveoles/Image/ImageServiceProvider.php @@ -27,7 +27,6 @@ public function register() Config::package('iveoles/image', __DIR__.'/../../config'); - $this->registerWorker(); $this->registerCache(); $this->registerImage(); @@ -35,16 +34,6 @@ public function register() } - - private function registerWorker() { - - $this->app->bind('iveoles.image.worker', function() { - return \Imagecow\Image::create(Config::get('image::worker')); - }); - - } - - private function registerCache() { $this->app->bind('iveoles.image.cache', function() { @@ -65,8 +54,7 @@ private function registerImage() { $app = $this->app; $this->app->bind('iveoles.image', function() use ($app) { - return new \Iveoles\Image\Image($app['iveoles.image.worker'], - $app['iveoles.image.cache'], + return new \Iveoles\Image\Image($app['iveoles.image.cache'], Config::get('image::cache.lifetime'), Config::get('image::route')); });