Refs #662 Fix Symfony version display on Devilbox intranet

This commit is contained in:
cytopia 2020-01-05 17:18:07 +01:00
parent 06830367c9
commit ed8639c636
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -82,7 +82,7 @@ class Php extends BaseClass implements BaseInterface
}
public function getSymfonyVersion()
{
$output = loadClass('Helper')->exec('symfony --version 2>/dev/null', $output);
$output = loadClass('Helper')->exec('symfony -V 2>/dev/null | tr -d "[:cntrl:]" | sed "s/\[[0-9]*m//g"', $output);
return loadClass('Helper')->egrep('/[0-9.]+/', $output);
}
public function getWpcliVersion()