!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/Testing/Concerns/   drwxr-xr-x
Free 13.13 GB of 57.97 GB (22.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Foundation\Testing\Concerns;

use 
Closure;
use 
Illuminate\Foundation\Mix;
use 
Mockery;

trait 
InteractsWithContainer
{
    
/**
     * The original Laravel Mix handler.
     *
     * @var \Illuminate\Foundation\Mix|null
     */
    
protected $originalMix;

    
/**
     * Register an instance of an object in the container.
     *
     * @param  string  $abstract
     * @param  object  $instance
     * @return object
     */
    
protected function swap($abstract$instance)
    {
        return 
$this->instance($abstract$instance);
    }

    
/**
     * Register an instance of an object in the container.
     *
     * @param  string  $abstract
     * @param  object  $instance
     * @return object
     */
    
protected function instance($abstract$instance)
    {
        
$this->app->instance($abstract$instance);

        return 
$instance;
    }

    
/**
     * Mock an instance of an object in the container.
     *
     * @param  string  $abstract
     * @param  \Closure|null  $mock
     * @return \Mockery\MockInterface
     */
    
protected function mock($abstractClosure $mock null)
    {
        return 
$this->instance($abstractMockery::mock(...array_filter(func_get_args())));
    }

    
/**
     * Mock a partial instance of an object in the container.
     *
     * @param  string  $abstract
     * @param  \Closure|null  $mock
     * @return \Mockery\MockInterface
     */
    
protected function partialMock($abstractClosure $mock null)
    {
        return 
$this->instance($abstractMockery::mock(...array_filter(func_get_args()))->makePartial());
    }

    
/**
     * Spy an instance of an object in the container.
     *
     * @param  string  $abstract
     * @param  \Closure|null  $mock
     * @return \Mockery\MockInterface
     */
    
protected function spy($abstractClosure $mock null)
    {
        return 
$this->instance($abstractMockery::spy(...array_filter(func_get_args())));
    }

    
/**
     * Register an empty handler for Laravel Mix in the container.
     *
     * @return $this
     */
    
protected function withoutMix()
    {
        if (
$this->originalMix == null) {
            
$this->originalMix app(Mix::class);
        }

        
$this->swap(Mix::class, function () {
            return 
'';
        });

        return 
$this;
    }

    
/**
     * Register an empty handler for Laravel Mix in the container.
     *
     * @return $this
     */
    
protected function withMix()
    {
        if (
$this->originalMix) {
            
$this->app->instance(Mix::class, $this->originalMix);
        }

        return 
$this;
    }
}

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