public __construct ( Imagine\Image\ImagineInterface $imagine, null | Symfony\Component\Filesystem\Filesystem $filesystem = null ) | ||
$imagine | Imagine\Image\ImagineInterface | |
$filesystem | null | Symfony\Component\Filesystem\Filesystem |
public function __construct(ImagineInterface $imagine, $filesystem = null)
{
$this->imagine = $imagine;
$this->filesystem = $filesystem ?: new Filesystem();
}