diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-02-07 12:11:27 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-02-07 12:11:27 +0100 |
commit | ab8bc1f980d8a3208d63e16223c941c4759925e3 (patch) | |
tree | 10a05fd313d3c0e97cc77c3a67a61f4ddc868973 /phpunit-5.4.0-Autoload.php.in | |
parent | 786cf1ad23ec77412757fec5346d1f9e2ed1e210 (diff) |
php-phpunit-PHPUnit: cleanup for upcoming v6
Diffstat (limited to 'phpunit-5.4.0-Autoload.php.in')
-rw-r--r-- | phpunit-5.4.0-Autoload.php.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpunit-5.4.0-Autoload.php.in b/phpunit-5.4.0-Autoload.php.in index 93a47af..baffe2c 100644 --- a/phpunit-5.4.0-Autoload.php.in +++ b/phpunit-5.4.0-Autoload.php.in @@ -12,8 +12,9 @@ if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { __DIR__ ); +$sym = (getenv('RPM_SYMFONY_TREE') ?: 'Symfony'); /* don't use symfony autoloader which pull some unwanted stuff (polyfill) */ -$vendorDir = stream_resolve_include_path('Symfony/Component/Yaml/Yaml.php'); +$vendorDir = stream_resolve_include_path("$sym/Component/Yaml/Yaml.php"); \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($vendorDir))); /* Required */ |