!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/sentry/sentry/src/Integration/   drwxr-xr-x
Free 29.13 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);

namespace 
Sentry\Integration;

use 
Psr\Log\LoggerInterface;
use 
Sentry\Options;

/**
 * @internal
 */
final class IntegrationRegistry
{
    
/**
     * @var self|null The current instance
     */
    
private static $instance;

    
/**
     * @var array<class-string<IntegrationInterface>, bool> The registered integrations
     */
    
private $integrations = [];

    private function 
__construct()
    {
    }

    
/**
     * Gets the current singleton instance or creates a new one if it didn't
     * exists yet.
     */
    
public static function getInstance(): self
    
{
        if (
null === self::$instance) {
            
self::$instance = new self();
        }

        return 
self::$instance;
    }

    
/**
     * Setups the integrations according to the given options. For each integration
     * the {@see IntegrationInterface::setupOnce()} method will be called only once
     * during the application lifetime.
     *
     * @param Options $options The SDK client options
     *
     * @return array<class-string<IntegrationInterface>, IntegrationInterface>
     */
    
public function setupIntegrations(Options $optionsLoggerInterface $logger): array
    {
        
$integrations = [];

        foreach (
$this->getIntegrationsToSetup($options) as $integration) {
            
$integrations[\get_class($integration)] = $integration;

            
$this->setupIntegration($integration$logger);
        }

        return 
$integrations;
    }

    private function 
setupIntegration(IntegrationInterface $integrationLoggerInterface $logger): void
    
{
        
$integrationName \get_class($integration);

        if (isset(
$this->integrations[$integrationName])) {
            return;
        }

        
$integration->setupOnce();

        
$this->integrations[$integrationName] = true;

        
$logger->debug(sprintf('The "%s" integration has been installed.'$integrationName));
    }

    
/**
     * @return IntegrationInterface[]
     */
    
private function getIntegrationsToSetup(Options $options): array
    {
        
$integrations = [];
        
$defaultIntegrations $this->getDefaultIntegrations($options);
        
$userIntegrations $options->getIntegrations();

        if (
\is_array($userIntegrations)) {
            
$userIntegrationsClasses array_map('get_class'$userIntegrations);
            
$pickedIntegrationsClasses = [];

            foreach (
$defaultIntegrations as $defaultIntegration) {
                
$integrationClassName \get_class($defaultIntegration);

                if (!
\in_array($integrationClassName$userIntegrationsClassestrue) && !isset($pickedIntegrationsClasses[$integrationClassName])) {
                    
$integrations[] = $defaultIntegration;
                    
$pickedIntegrationsClasses[$integrationClassName] = true;
                }
            }

            foreach (
$userIntegrations as $userIntegration) {
                
$integrationClassName \get_class($userIntegration);

                if (!isset(
$pickedIntegrationsClasses[$integrationClassName])) {
                    
$integrations[] = $userIntegration;
                    
$pickedIntegrationsClasses[$integrationClassName] = true;
                }
            }
        } else {
            
$integrations $userIntegrations($defaultIntegrations);

            if (!
\is_array($integrations)) {
                throw new 
\UnexpectedValueException(sprintf('Expected the callback set for the "integrations" option to return a list of integrations. Got: "%s".'get_debug_type($integrations)));
            }
        }

        return 
$integrations;
    }

    
/**
     * @return IntegrationInterface[]
     */
    
private function getDefaultIntegrations(Options $options): array
    {
        if (!
$options->hasDefaultIntegrations()) {
            return [];
        }

        
$integrations = [
            new 
RequestIntegration(),
            new 
TransactionIntegration(),
            new 
FrameContextifierIntegration(),
            new 
EnvironmentIntegration(),
            new 
ModulesIntegration(),
        ];

        if (
null !== $options->getDsn()) {
            
array_unshift($integrations, new ExceptionListenerIntegration(), new ErrorListenerIntegration(), new FatalErrorListenerIntegration());
        }

        return 
$integrations;
    }
}

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