[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
vendor
/
typisttech
/
imposter-plugin
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AutoloadMerger.php
1,089 B
SET
[ EDIT ]
|
[ DEL ]
📄 ImposterPlugin.php
1,733 B
SET
[ EDIT ]
|
[ DEL ]
📄 Transformer.php
1,821 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: AutoloadMerger.php
<?php declare(strict_types=1); namespace TypistTech\Imposter\Plugin; use Composer\Package\RootPackageInterface; use RuntimeException; use TypistTech\Imposter\ImposterFactory; class AutoloadMerger { public static function run(RootPackageInterface $package): void { $autoload = $package->getAutoload(); $autoload = array_merge_recursive($autoload, [ 'classmap' => static::getImposterAutoloads(), ]); $package->setAutoload($autoload); } /** * @return string[] * @todo [Help Wanted] Think of a better way to handle file not found during installation */ protected static function getImposterAutoloads(): array { try { $cwd = getcwd(); $imposter = ImposterFactory::forProject($cwd, ['typisttech/imposter-plugin']); return array_map(function ($path) use ($cwd): string { return str_replace($cwd . '/', '', $path); }, $imposter->getAutoloads()); } catch (RuntimeException $exception) { return []; } } }