summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
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)) {