!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/laravel/framework/src/Illuminate/Foundation/Console/   drwxr-xr-x
Free 13.12 GB of 57.97 GB (22.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     EventListCommand.php (2.35 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Illuminate\Foundation\Console;

use 
Illuminate\Console\Command;
use 
Illuminate\Foundation\Support\Providers\EventServiceProvider;
use 
Illuminate\Support\Str;

class 
EventListCommand extends Command
{
    
/**
     * The name and signature of the console command.
     *
     * @var string
     */
    
protected $signature 'event:list {--event= : Filter the events by name}';

    
/**
     * The console command description.
     *
     * @var string
     */
    
protected $description "List the application's events and listeners";

    
/**
     * Execute the console command.
     *
     * @return mixed
     */
    
public function handle()
    {
        
$events $this->getEvents();

        if (empty(
$events)) {
            return 
$this->error("Your application doesn't have any events matching the given criteria.");
        }

        
$this->table(['Event''Listeners'], $events);
    }

    
/**
     * Get all of the events and listeners configured for the application.
     *
     * @return array
     */
    
protected function getEvents()
    {
        
$events = [];

        foreach (
$this->laravel->getProviders(EventServiceProvider::class) as $provider) {
            
$providerEvents array_merge_recursive($provider->shouldDiscoverEvents() ? $provider->discoverEvents() : [], $provider->listens());

            
$events array_merge_recursive($events$providerEvents);
        }

        if (
$this->filteringByEvent()) {
            
$events $this->filterEvents($events);
        }

        return 
collect($events)->map(function ($listeners$event) {
            return [
'Event' => $event'Listeners' => implode(PHP_EOL$listeners)];
        })->
sortBy('Event')->values()->toArray();
    }

    
/**
     * Filter the given events using the provided event name filter.
     *
     * @param  array  $events
     * @return array
     */
    
protected function filterEvents(array $events)
    {
        if (! 
$eventName $this->option('event')) {
            return 
$events;
        }

        return 
collect($events)->filter(function ($listeners$event) use ($eventName) {
            return 
Str::contains($event$eventName);
        })->
toArray();
    }

    
/**
     * Determine whether the user is filtering by an event name.
     *
     * @return bool
     */
    
protected function filteringByEvent()
    {
        return ! empty(
$this->option('event'));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]--