terrazine/composer-events

Wraps some composer events to laravel.

v3.0.0 2017-11-02 14:22 UTC

This package is not auto-updated.

Last update: 2024-11-16 16:07:25 UTC


README

\Illuminate\Support\Facades\Event::listen(\Terrazine\ComposerEvents\PreAutoloadDump::class, function () {
    return function (\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\output\OutputInterface $output){
        \Illuminate\Support\Facades\Artisan::call('down', [], $output);
    };
});

\Illuminate\Support\Facades\Event::listen(\Terrazine\ComposerEvents\PostAutoloadDump::class, function () {
    return function (\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\output\OutputInterface $output){
        \Illuminate\Support\Facades\Artisan::call('up', [], $output);
    };
});