Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.14.152.212
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
vendor /
laravel /
tinker /
src /
Delete
Unzip
Name
Size
Permission
Date
Action
Console
[ DIR ]
drwxr-xr-x
2019-08-07 15:10
ClassAliasAutoloader.php
2.51
KB
-rw-r--r--
2019-08-07 15:10
TinkerCaster.php
2.21
KB
-rw-r--r--
2019-08-07 15:10
TinkerServiceProvider.php
1.36
KB
-rw-r--r--
2019-08-07 15:10
Save
Rename
<?php namespace Laravel\Tinker; use Psy\Shell; use Illuminate\Support\Str; class ClassAliasAutoloader { /** * The shell instance. * * @var \Psy\Shell */ protected $shell; /** * All of the discovered classes. * * @var array */ protected $classes = []; /** * Register a new alias loader instance. * * @param \Psy\Shell $shell * @param string $classMapPath * @return static */ public static function register(Shell $shell, $classMapPath) { return tap(new static($shell, $classMapPath), function ($loader) { spl_autoload_register([$loader, 'aliasClass']); }); } /** * Create a new alias loader instance. * * @param \Psy\Shell $shell * @param string $classMapPath * @return void */ public function __construct(Shell $shell, $classMapPath) { $this->shell = $shell; $vendorPath = dirname(dirname($classMapPath)); $classes = require $classMapPath; $excludedAliases = collect(config('tinker.dont_alias', [])); foreach ($classes as $class => $path) { if (! Str::contains($class, '\\') || Str::startsWith($path, $vendorPath)) { continue; } if (! $excludedAliases->filter(function ($alias) use ($class) { return Str::startsWith($class, $alias); })->isEmpty()) { continue; } $name = class_basename($class); if (! isset($this->classes[$name])) { $this->classes[$name] = $class; } } } /** * Find the closest class by name. * * @param string $class * @return void */ public function aliasClass($class) { if (Str::contains($class, '\\')) { return; } $fullName = isset($this->classes[$class]) ? $this->classes[$class] : false; if ($fullName) { $this->shell->writeStdout("[!] Aliasing '{$class}' to '{$fullName}' for this Tinker session.\n"); class_alias($fullName, $class); } } /** * Unregister the alias loader instance. * * @return void */ public function unregister() { spl_autoload_unregister([$this, 'aliasClass']); } /** * Handle the destruction of the instance. * * @return void */ public function __destruct() { $this->unregister(); } }