<?php namespace Orchestra\Foundation\Composer;

use Orchestra\Foundation\Application;
use Illuminate\Foundation\ComposerScripts;

class Command extends ComposerScripts
{
    /**
     * Clear the cached Laravel bootstrapping files.
     *
     * @return void
     */
    private static function clearCompiled()
    {
        $laravel = new Application(getcwd());

        if (file_exists($compiledPath = $laravel->getCachedCompilePath())) {
            @unlink($compiledPath);
        }

        if (file_exists($servicesPath = $laravel->getCachedServicesPath())) {
            @unlink($servicesPath);
        }

        if (file_exists($extensionServicesPath = $laravel->getCachedExtensionServicesPath())) {
            @unlink($extensionServicesPath);
        }
    }
}

Add composer post install/update for Orchestra Platform.
Add composer post install/update for Orchestra Platform.

Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
