summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-11-29 09:24:49 +0100
committerRemi Collet <fedora@famillecollet.com>2015-11-29 09:24:49 +0100
commit128f54ea5491121d03bb65b3fa9b55e1e414808c (patch)
treebc045b33ae2cede0c16e5f8355d1d83e20abc3af /phpspec-autoload.php
parent5e5793b3ceff0f428d4527c20d40033ddcf02000 (diff)
php-phpspec: 2.4.0
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r--phpspec-autoload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpspec-autoload.php b/phpspec-autoload.php
index 1fb529a..d39e8d1 100644
--- a/phpspec-autoload.php
+++ b/phpspec-autoload.php
@@ -1,7 +1,8 @@
<?php
/* Autoloader for phpspec/phpspec and its dependencies */
-$vendorDir = '/usr/share/php';
+$vendorDir = stream_resolve_include_path('Symfony/Component/ClassLoader/ClassLoader.php');
+$vendorDir = dirname(dirname(dirname(dirname($vendorDir))));
// Use Symfony autoloader
if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {