1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-06 22:00:38 +01:00

disabled session cookies for image route

This commit is contained in:
Oliver Vogel 2014-06-08 23:56:29 +02:00
parent 98ad1958a2
commit bbdb310dfa

View File

@ -51,6 +51,9 @@ class ImageServiceProvider extends ServiceProvider
// setup image manipulator route
$app['router']->get($config->get('imagecache::route').'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($app, $config) {
// disable session cookies for image route
$app['config']->set('session.driver', 'array');
// find file
foreach ($config->get('imagecache::paths') as $path) {
$image_path = $path.'/'.$filename;