Blame view

backend/components/croppers/CropContext.php 347 Bytes
01ebf78c   Administrator   Initial commit
1
2
3
4
5
6
7
8
  <?php
  
  namespace backend\components\croppers;
  
  
  class CropContext
  {
      /**
b5f053d9   Administrator   Adding dirs for p...
9
       * @var AbstractCrop
01ebf78c   Administrator   Initial commit
10
11
12
13
14
15
16
17
       */
      private $cropper;
  
      public function __construct(AbstractCrop $abstractCrop) {
          $this->cropper = $abstractCrop;
      }
  
      public function cropImage($image, $path) {
bfa22e8e   Administrator   Adding resizing a...
18
          return $this->cropper->crop($image, $path);
01ebf78c   Administrator   Initial commit
19
20
      }
  }