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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user