From c5888ac6f126b7e65ffcf14df4c04a2a51f51de0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Nov 2016 08:01:01 +0100 Subject: php-phpspec-prophecy: 1.6.2 --- php-phpspec-prophecy-autoload.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'php-phpspec-prophecy-autoload.php') diff --git a/php-phpspec-prophecy-autoload.php b/php-phpspec-prophecy-autoload.php index 54effef..12f47cb 100644 --- a/php-phpspec-prophecy-autoload.php +++ b/php-phpspec-prophecy-autoload.php @@ -3,17 +3,9 @@ // Rely on include_path as in PHPUnit dependencies + circular dependencies -// Use Symfony autoloader -if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) { - if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) { - require_once 'Symfony/Component/ClassLoader/ClassLoader.php'; - } +require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; - $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader(); - $fedoraClassLoader->register(); -} - -$fedoraClassLoader->addPrefix('Prophecy\\', dirname(__DIR__)); +\Fedora\Autoloader\Autoload::addPsr4('Prophecy\\', __DIR__); // Dependencies require_once 'Doctrine/Instantiator/autoload.php'; -- cgit