<commit_before><?php

namespace Orchestra\Foundation\Providers;

use Illuminate\Contracts\Foundation\Application;
use Orchestra\Foundation\Console\Commands\AssembleCommand;
use Orchestra\Foundation\Console\Commands\ConfigureMailCommand;
use Orchestra\Support\Providers\CommandServiceProvider as ServiceProvider;

class CommandServiceProvider extends ServiceProvider
{
    /**
     * The commands to be registered.
     *
     * @var array
     */
    protected $commands = [
        'Assemble' => 'orchestra.commands.assemble',
        'ConfigureMail' => 'orchestra.commands.configure-mail',
    ];

    /**
     * Register the command.
     *
     * @return void
     */
    protected function registerAssembleCommand(): void
    {
        $this->app->singleton('orchestra.commands.assemble', static function (Application $app) {
            $foundation = $app->make('orchestra.app');

            return new AssembleCommand($foundation, $foundation->memory());
        });
    }

    /**
     * Register the command.
     *
     * @return void
     */
    protected function registerConfigureMailCommand(): void
    {
        $this->app->singleton('orchestra.commands.configure-mail', static function () {
            return new ConfigureMailCommand();
        });
    }
}
<commit_msg>Remove DI on command construct.<commit_after><?php

namespace Orchestra\Foundation\Providers;

use Illuminate\Contracts\Foundation\Application;
use Orchestra\Foundation\Console\Commands\AssembleCommand;
use Orchestra\Foundation\Console\Commands\ConfigureMailCommand;
use Orchestra\Support\Providers\CommandServiceProvider as ServiceProvider;

class CommandServiceProvider extends ServiceProvider
{
    /**
     * The commands to be registered.
     *
     * @var array
     */
    protected $commands = [
        'Assemble' => 'orchestra.commands.assemble',
        'ConfigureMail' => 'orchestra.commands.configure-mail',
    ];

    /**
     * Register the command.
     *
     * @return void
     */
    protected function registerAssembleCommand(): void
    {
        $this->app->singleton('orchestra.commands.assemble', static function () {
            return new AssembleCommand();
        });
    }

    /**
     * Register the command.
     *
     * @return void
     */
    protected function registerConfigureMailCommand(): void
    {
        $this->app->singleton('orchestra.commands.configure-mail', static function () {
            return new ConfigureMailCommand();
        });
    }
}

{'fraction_non_alphanumeric': 0.11504424778761062, 'fraction_numerical': 0.0, 'mean_word_length': 2.8202764976958523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '1676757', 'n_tokens_mistral': 645, 'n_tokens_neox': 658, 'n_words': 129}