%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/vendor/intervention/image/src/Intervention/Image/Gd/Commands/
Upload File :
Create Path :
Current File : //var/www/html/news/vendor/intervention/image/src/Intervention/Image/Gd/Commands/DestroyCommand.php

<?php

namespace Intervention\Image\Gd\Commands;

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

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

        return true;
    }
}

Zerion Mini Shell 1.0