1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-01 18:02:45 +02: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 // setup image manipulator route
$app['router']->get($config->get('imagecache::route').'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($app, $config) { $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 // find file
foreach ($config->get('imagecache::paths') as $path) { foreach ($config->get('imagecache::paths') as $path) {
$image_path = $path.'/'.$filename; $image_path = $path.'/'.$filename;