summaryrefslogtreecommitdiffstats
path: root/php-myclabs-deep-copy-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-11-01 06:33:04 +0100
committerRemi Collet <fedora@famillecollet.com>2016-11-01 06:33:04 +0100
commit03cac37944bca95903e155f7c2cb3343ff464299 (patch)
tree6c13ae196c68c01560344a8979a91d0b1a304d10 /php-myclabs-deep-copy-autoload.php
parent678d53f88ace4427d98475e51784597f981376f2 (diff)
php-myclabs-deep-copy: 1.5.5
Diffstat (limited to 'php-myclabs-deep-copy-autoload.php')
-rw-r--r--php-myclabs-deep-copy-autoload.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/php-myclabs-deep-copy-autoload.php b/php-myclabs-deep-copy-autoload.php
index efb6bb4..57c6dfe 100644
--- a/php-myclabs-deep-copy-autoload.php
+++ b/php-myclabs-deep-copy-autoload.php
@@ -1,15 +1,7 @@
<?php
/* Autoloader for myclabs/deep-copy and its dependencies */
-$vendorDir = '/usr/share/php';
-// Use Symfony autoloader
-if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
- if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
- require_once $vendorDir . '/Symfony/Component/ClassLoader/ClassLoader.php';
- }
+require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
- $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader();
- $fedoraClassLoader->register();
-}
+\Fedora\Autoloader\Autoload::addPsr4('DeepCopy\\', __DIR__);
-$fedoraClassLoader->addPrefix('DeepCopy\\', dirname(__DIR__));