summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-05-11 10:19:51 +0200
committerRemi Collet <remi@remirepo.net>2017-05-11 10:19:51 +0200
commit74fcac38d0fa7ce318465934f208e37e42511541 (patch)
tree0b491e04914b499b0f083927d47cf1800d3dcc90 /phpspec-autoload.php
parent86c95fba1b0a5e9ae9d1124a5da5821d3a7b9bc9 (diff)
only allow a single Symfony version
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r--phpspec-autoload.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/phpspec-autoload.php b/phpspec-autoload.php
index f8fae7e..1fbcc5d 100644
--- a/phpspec-autoload.php
+++ b/phpspec-autoload.php
@@ -4,13 +4,7 @@
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('PhpSpec\\', __DIR__);
-if ($f = stream_resolve_include_path('Symfony3/Component/Console/Application.php')) {
- \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($f)));
-} else if ($f = stream_resolve_include_path('Symfony/Component/Console/Application.php')) {
- \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($f)));
-} else {
- die("Can't find Symfony Framework\n");
-}
+\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', '/usr/share/php/@SYMFONY@/Component');
/* spec tree in current dir, when exists */
if (is_dir(getcwd().'/spec')) {