!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)

/var/www/html/laravel-crm/vendor/konekt/concord/src/Proxies/   drwxrwxrwx
Free 12.92 GB of 57.97 GB (22.29%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     BaseProxy.php (2.43 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Contains the BaseProxy class.
 *
 * @copyright   Copyright (c) 2017 Attila Fulop
 * @author      Attila Fulop
 * @license     MIT
 * @since       2017-05-24
 *
 */

namespace Konekt\Concord\Proxies;

use 
Konekt\Concord\Contracts\Concord;
use 
LogicException;

abstract class 
BaseProxy
{
    
/** @var Concord */
    
public $concord;

    
/** @var string */
    
protected $contract;

    
/** @var array */
    
protected static $instances = [];

    
/**
     * Repository constructor.
     *
     * @param Concord $concord
     */
    
public function __construct(Concord $concord null)
    {
        
$this->concord $concord ?: app('concord');

        if (empty(
$this->contract)) {
            
$this->contract $this->guessContract();
        }

        if (!
interface_exists($this->contract)) {
            throw new 
LogicException(
                
sprintf(
                    
'The proxy %s has a non-existent contract class: `%s`',
                    static::class,
                    
$this->contract
                
)
            );
        }
    }

    
/**
     * Resets the proxy by removing the class instance.
     * Shouldn't be used in application code.
     *
     */
    
public static function __reset()
    {
        
// This is only needed to ensure that in the rare case when
        // the app instance gets replaced along with the Concord
        // singleton in runtime, no stale concord survives it
        
if (isset(static::$instances[static::class])) {
            unset(static::
$instances[static::class]);
        }
    }

    
/**
     * @param $method
     * @param $parameters
     *
     * @return mixed
     */
    
public static function __callStatic($method$parameters)
    {
        return 
call_user_func(static::getInstance()->targetClass() . '::' $method, ...$parameters);
    }

    
/**
     * This is a method where the dark word 'static' has 7 occurrences
     *
     * @return BaseProxy
     */
    
public static function getInstance()
    {
        if (!isset(static::
$instances[static::class])) {
            static::
$instances[static::class] = new static();
        }

        return static::
$instances[static::class];
    }

    
/**
     * Try guessing the associated contract class for a concrete proxy class
     *
     * @return string
     */
    
abstract protected function guessContract();

    
/**
     * Returns the resolved class
     *
     * @return string
     */
    
abstract protected function targetClass(): string;
}

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