From 6626d7624ac0895137a38c123943afedd0827efc Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Fri, 24 Apr 2015 16:50:48 +0200 Subject: [PATCH] bugfix --- .../Image/ImageServiceProviderLaravel5.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/Intervention/Image/ImageServiceProviderLaravel5.php b/src/Intervention/Image/ImageServiceProviderLaravel5.php index ed811c16..49214030 100644 --- a/src/Intervention/Image/ImageServiceProviderLaravel5.php +++ b/src/Intervention/Image/ImageServiceProviderLaravel5.php @@ -78,17 +78,11 @@ class ImageServiceProviderLaravel5 extends ServiceProvider $filename_pattern = '[ \w\\.\\/\\-]+'; - // route to access original file - $app['router']->get( - config('imagecache.route').'/original/{filename}', - 'Intervention\Image\ImageCacheController@getOriginal' - )->where(array('filename' => $filename_pattern)); - // route to access template applied image file - $app['router']->get( - config('imagecache.route').'/{template}/{filename}', - 'Intervention\Image\ImageCacheController@getImage' - )->where(array('filename' => $filename_pattern)); + $app['router']->get(config('imagecache.route').'/{template}/{filename}', array( + 'uses' => 'Intervention\Image\ImageCacheController@getResponse', + 'as' => 'imagecache' + ))->where(array('filename' => $filename_pattern)); } } }