Source of file CropperFactory.php
Size: 0,535 Bytes - Last Modified: 2021-12-23T10:59:36+00:00
/var/www/docs.ssmods.com/process/src/code/Service/CropperFactory.php
123456789101112131415161718192021 | <?php namespace CropperField\Service; /** * CropperFactory * Really basic factory that goes and creates a Cropper instance with Injector. * By default this is the GD cropper. * The interface validation happens on CropperField's setter. */ class CropperFactory implements \SilverStripe\Framework\Injector\Factory { /** * @return \CropperField\Cropper\CropperInterface */ public function create($service, array $params = array()) { $class = \Config::inst()->get('CropperFactory', 'cropper'); return new $class(); } } |