Logo white

Denys / ImageCropper

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • ImageCropper
  • backend
  • components
  • croppers
  • CropContext.php
  • Initial commit
    01ebf78c
    Administrator authored
    2015-10-27 14:57:39 +0200  
    Browse Code ยป
CropContext.php 341 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php

namespace backend\components\croppers;


class CropContext
{
    /**
     * @var CropInterface
     */
    private $cropper;

    public function __construct(AbstractCrop $abstractCrop) {
        $this->cropper = $abstractCrop;
    }

    public function cropImage($image, $path) {
        $this->cropper->crop($image, $path);
    }
}