Version106.php 553 Bytes
<?php

namespace App\Listeners\Updates;

use App\Events\UpdateFinished;
use File;

class Version106 extends Listener
{
    const ALIAS = 'core';

    const VERSION = '1.0.6';

    /**
     * Handle the event.
     *
     * @param  $event
     * @return void
     */
    public function handle(UpdateFinished $event)
    {
        // Check if should listen
        if (!$this->check($event)) {
            return;
        }

        // Moved to app directory
        File::deleteDirectory(app_path('Http' . DIRECTORY_SEPARATOR .'Transformers'));
    }
}