🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 20:19:37 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
src
/
Matchers
📍 /opt/cpanel/ea-wappspector/src/Matchers
🔄 Refresh
✏️
Editing: Symfony.php
Read Only
<?php declare(strict_types=1); namespace Plesk\Wappspector\Matchers; use JsonException; use League\Flysystem\Filesystem; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; use Plesk\Wappspector\MatchResult\Symfony as MatchResult; class Symfony implements MatcherInterface { public function match(Filesystem $fs, string $path): MatchResultInterface { $symfonyLockFile = rtrim($path, '/') . '/symfony.lock'; if (!$fs->fileExists($symfonyLockFile)) { return new EmptyMatchResult(); } $json = []; try { $json = json_decode($fs->read($symfonyLockFile), true, 512, JSON_THROW_ON_ERROR); } catch (JsonException) { // ignore symfony.lock errors } return new MatchResult($path, $json["symfony/framework-bundle"]["version"] ?? null); } }
💾 Save Changes
❌ Cancel