<commit_before><?php namespace Orchestra\Foundation\Jobs;

use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Contracts\Foundation\Application;

class RefreshRouteCache extends Job implements SelfHandling, ShouldQueue
{
    use InteractsWithQueue, SerializesModels;

    /**
     * Execute the job.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Console\Kernel  $kernel
     *
     * @return void
     */
    public function handle(Application $app, Kernel $kernel)
    {
        if (! $app->routesAreCached()) {
            return;
        }

        $kernel->call('route:cache');
    }
}<commit_msg>Don't use should queue by default.<commit_after><?php namespace Orchestra\Foundation\Jobs;

use Illuminate\Contracts\Console\Kernel;
use Illuminate\Contracts\Bus\SelfHandling;
use Illuminate\Contracts\Foundation\Application;

class RefreshRouteCache extends Job implements SelfHandling
{
    /**
     * Execute the job.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @param  \Illuminate\Contracts\Console\Kernel  $kernel
     *
     * @return void
     */
    public function handle(Application $app, Kernel $kernel)
    {
        if (! $app->routesAreCached()) {
            return;
        }

        $app->terminating(function () use ($kernel) {
            $kernel->call('route:cache');
        });
    }
}
{'fraction_non_alphanumeric': 0.11146295123495883, 'fraction_numerical': 0.0, 'mean_word_length': 3.0306122448979593, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5371421', 'n_tokens_mistral': 445, 'n_tokens_neox': 469, 'n_words': 90}