summaryrefslogtreecommitdiffstats
path: root/phpunit-5.4.0-Autoload.php.in
diff options
context:
space:
mode:
Diffstat (limited to 'phpunit-5.4.0-Autoload.php.in')
-rw-r--r--phpunit-5.4.0-Autoload.php.in3
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 */