summaryrefslogtreecommitdiffstats
path: root/php-phpspec-prophecy-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-22 08:01:01 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-22 08:01:01 +0100
commitc5888ac6f126b7e65ffcf14df4c04a2a51f51de0 (patch)
tree14a8d2a3dd2a64eaa65143468310f32fe6924e9c /php-phpspec-prophecy-autoload.php
parent0034c513066b79a196d4980c481353b28dc320d6 (diff)
php-phpspec-prophecy: 1.6.2
Diffstat (limited to 'php-phpspec-prophecy-autoload.php')
-rw-r--r--php-phpspec-prophecy-autoload.php12
1 files changed, 2 insertions, 10 deletions
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';