Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/Intervention/Image/ImageCacheController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@

use Closure;
use Intervention\Image\ImageManager;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Http\Response as IlluminateResponse;
use Config;

class ImageCacheController extends BaseController
class ImageCacheController
{
/**
* Get HTTP response of either original image file or
Expand Down Expand Up @@ -45,7 +43,7 @@ public function getImage($template, $filename)
$path = $this->getImagePath($filename);

// image manipulation based on callback
$manager = new ImageManager(Config::get('image'));
$manager = new ImageManager(config('image'));
$content = $manager->cache(function ($image) use ($template, $path) {

if ($template instanceof Closure) {
Expand Down