diff --git a/File.php b/File.php index 40b539e..daa5d55 100644 --- a/File.php +++ b/File.php @@ -6,7 +6,7 @@ use Yii; use yii\web\UploadedFile; use Imagine\Image\Box; use Imagine\Image\ImageInterface; -use \yii\imagine\Image; +use yii\imagine\Image; /** * This is the model class for table "file". diff --git a/composer.json b/composer.json index a890f91..5dfd810 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,8 @@ } ], "require": { - "yiisoft/yii2": "~2.0.0" + "yiisoft/yii2": "~2.0.0", + "yiisoft/yii2-imagine": "~2.2.0" }, "autoload": { "psr-4": {