diff options
Diffstat (limited to 'php-myclabs-deep-copy-autoload.php')
-rw-r--r-- | php-myclabs-deep-copy-autoload.php | 12 |
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__)); |