uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
admin.priyotama.com
/
app
/
Providers
/
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 { // } }
/home/users/unlimited/www/admin.priyotama.com/app/Providers/InterfaceServiceProvider.php