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:
parent
98ad1958a2
commit
bbdb310dfa
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user