Вход Регистрация
Файл: system/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/DestroyCommand.php
Строк: 24
<?php

namespace InterventionImageImagickCommands;

use 
InterventionImageCommandsAbstractCommand;

class 
DestroyCommand extends AbstractCommand
{
    
/**
     * Destroys current image core and frees up memory
     *
     * @param  InterventionImageImage $image
     * @return boolean
     */
    
public function execute($image)
    {
        
// destroy image core
        
$image->getCore()->clear();

        
// destroy backups
        
foreach ($image->getBackups() as $backup) {
            
$backup->clear();
        }

        return 
true;
    }
}
Онлайн: 0
Реклама