관리-도구
편집 파일: BackupCommand.php
<?php namespace Intervention\Image\Imagick\Commands; class BackupCommand extends \Intervention\Image\Commands\AbstractCommand { /** * Saves a backups of current state of image core * * @param \Intervention\Image\Image $image * @return boolean */ public function execute($image) { $backupName = $this->argument(0)->value(); // clone current image resource $image->setBackup(clone $image->getCore(), $backupName); return true; } }