Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Foundation/Console/PackageDiscoverCommand.php
Строк: 63
<?php

namespace IlluminateFoundationConsole;

use 
IlluminateConsoleCommand;
use 
IlluminateFoundationPackageManifest;
use 
SymfonyComponentConsoleAttributeAsCommand;

#[AsCommand(name: 'package:discover')]
class PackageDiscoverCommand extends Command
{
    
/**
     * The console command signature.
     *
     * @var string
     */
    
protected $signature 'package:discover';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description 'Rebuild the cached package manifest';

    
/**
     * Execute the console command.
     *
     * @param  IlluminateFoundationPackageManifest  $manifest
     * @return void
     */
    
public function handle(PackageManifest $manifest)
    {
        
$this->components->info('Discovering packages');

        
$manifest->build();

        
collect($manifest->manifest)
            ->
keys()
            ->
each(fn ($description) => $this->components->task($description))
            ->
whenNotEmpty(fn () => $this->newLine());
    }
}
Онлайн: 0
Реклама