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

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/php/WP_CLI/   drwxr-xr-x
Free 689.61 GB of 879.6 GB (78.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WP_CLI;

use Composer\DependencyResolver\Rule;
use Composer\EventDispatcher\EventSubscriberInterface;
use Composer\Installer\PackageEvent;
use Composer\Installer\PackageEvents;
use WP_CLI;

/**
 * A Composer Event subscriber so we can keep track of what's happening inside Composer
 */
class PackageManagerEventSubscriber implements EventSubscriberInterface {

    /**
     * Get subscribed events.
     *
     * @return array
     */
    public static function getSubscribedEvents() {

        return [
            PackageEvents::PRE_PACKAGE_INSTALL  => 'pre_install',
            PackageEvents::POST_PACKAGE_INSTALL => 'post_install',
        ];
    }

    /**
     * Pre-install operation message.
     *
     * @param \Composer\Installer\PackageEvent $event
     *
     * @return void
     */
    public static function pre_install( PackageEvent $event ) {
        $operation_message = $event->getOperation()->__toString();
        WP_CLI::log( ' - ' . $operation_message );
    }

    /**
     * Post-install operation log.
     *
     * @param \Composer\Installer\PackageEvent $event
     *
     * @return void
     */
    public static function post_install( PackageEvent $event ) {

        $operation = $event->getOperation();

        // getReason() was removed in Composer v2 without replacement.
        if ( ! method_exists( $operation, 'getReason' ) ) {
            return;
        }

        $reason = $operation->getReason();
        if ( $reason instanceof Rule ) {

            switch ( $reason->getReason() ) {

                case Rule::RULE_PACKAGE_CONFLICT:
                case Rule::RULE_PACKAGE_SAME_NAME:
                case Rule::RULE_PACKAGE_REQUIRES:
                    $composer_error = $reason->getPrettyString( $event->getPool() );
                    break;

            }

            if ( ! empty( $composer_error ) ) {
                WP_CLI::log( sprintf( ' - Warning: %s', $composer_error ) );
            }
        }
    }
}

:: 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.0118 ]--