diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-07-04 16:12:57 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-07-04 16:12:57 +0200 |
commit | 96f96236d06dd0829d5820fdf498e00d484347e5 (patch) | |
tree | 6c302b1b2c4addda7cf7b59a5ff00ada1dfa4cd5 /php-myclabs-deep-copy-autoload.php |
php-myclabs-deep-copy: 1.3.0 - New package
Diffstat (limited to 'php-myclabs-deep-copy-autoload.php')
-rw-r--r-- | php-myclabs-deep-copy-autoload.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/php-myclabs-deep-copy-autoload.php b/php-myclabs-deep-copy-autoload.php new file mode 100644 index 0000000..efb6bb4 --- /dev/null +++ b/php-myclabs-deep-copy-autoload.php @@ -0,0 +1,15 @@ +<?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'; + } + + $fedoraClassLoader = new \Symfony\Component\ClassLoader\ClassLoader(); + $fedoraClassLoader->register(); +} + +$fedoraClassLoader->addPrefix('DeepCopy\\', dirname(__DIR__)); |