diff --git a/Blacklight/build/ComposerScripts.php b/Blacklight/build/ComposerScripts.php deleted file mode 100644 index af733cf6b..000000000 --- a/Blacklight/build/ComposerScripts.php +++ /dev/null @@ -1,65 +0,0 @@ -. - * - * @author niel - * @copyright 2017 nZEDb - */ - -namespace Blacklight\build; - -use Composer\Script\Event; -use Illuminate\Foundation\Application; - -class ComposerScripts -{ - /** - * Handle the post-install Composer event. - * - * @return void - */ - public static function postInstall(Event $event) - { - require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php'; - - static::clearCompiled(); - } - - /** - * Handle the post-update Composer event. - * - * @return void - */ - public static function postUpdate(Event $event) - { - require_once $event->getComposer()->getConfig()->get('vendor-dir').'/autoload.php'; - - static::clearCompiled(); - } - - /** - * Clear the cached Laravel bootstrapping files. - * - * @return void - */ - protected static function clearCompiled() - { - $nntmux = new Application(getcwd()); - - if (file_exists($servicesPath = $nntmux->getCachedServicesPath())) { - @unlink($servicesPath); - } - } -} diff --git a/composer.json b/composer.json index 066b5cb0a..1ff1f4e8c 100644 --- a/composer.json +++ b/composer.json @@ -185,11 +185,7 @@ "sort-packages": true }, "scripts": { - "post-install-cmd": [ - "Blacklight\\build\\ComposerScripts::postInstall" - ], "post-update-cmd": [ - "Blacklight\\build\\ComposerScripts::postUpdate", "@php artisan ide-helper:generate --ansi", "@php artisan vendor:publish --tag=laravel-assets --ansi" ],