From d8c5ad709d4c0913ce2b50264027e554fca95433 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 1 Feb 2019 12:26:12 +0100 Subject: use Symfony component autoloaders --- phpspec-autoload.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'phpspec-autoload.php') 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', -- cgit