summaryrefslogtreecommitdiffstats
path: root/phpspec-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-02-01 12:26:12 +0100
committerRemi Collet <remi@remirepo.net>2019-02-01 12:26:12 +0100
commitd8c5ad709d4c0913ce2b50264027e554fca95433 (patch)
tree6bff9e8b083ecd7698b7c46849c94c9954aa0fb9 /phpspec-autoload.php
parent59374aede7b86858f4a04c93d15949b5d3d32d2e (diff)
use Symfony component autoloaders
Diffstat (limited to 'phpspec-autoload.php')
-rw-r--r--phpspec-autoload.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpspec-autoload.php b/phpspec-autoload.php
index 066d8d7..b7858c6 100644
--- a/phpspec-autoload.php
+++ b/phpspec-autoload.php
@@ -4,7 +4,6 @@
require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('PhpSpec\\', __DIR__);
-\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', '/usr/share/php/@SYMFONY@/Component');
/* spec tree in current dir, when exists */
if (is_dir(getcwd().'/spec')) {
@@ -13,6 +12,11 @@ if (is_dir(getcwd().'/spec')) {
// Dependencies (Rely on include_path as in PHPUnit dependencies + circular dependencies)
\Fedora\Autoloader\Dependencies::required([
+ '/usr/share/php/@SYMFONY@/Component/Console/autoload.php',
+ '/usr/share/php/@SYMFONY@/Component/EventDispatcher/autoload.php',
+ '/usr/share/php/@SYMFONY@/Component/Finder/autoload.php',
+ '/usr/share/php/@SYMFONY@/Component/Process/autoload.php',
+ '/usr/share/php/@SYMFONY@/Component/Yaml/autoload.php',
'phpspec/php-diff/autoload.php',
'Prophecy/autoload.php',
'Doctrine/Instantiator/autoload.php',