summaryrefslogtreecommitdiffstats
path: root/phinx-autoload.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-27 14:42:17 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-27 14:42:17 +0200
commit20a82aca806eae1a4c30176ed90357b3c9df6750 (patch)
tree537ee232f9f9764909b562bc0cfbad62c5ce40fe /phinx-autoload.php
parenta8e74ff4a4c39fc813ffcc492a1e57931c6395c5 (diff)
phinx: 0.6.5
Diffstat (limited to 'phinx-autoload.php')
-rw-r--r--phinx-autoload.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/phinx-autoload.php b/phinx-autoload.php
index b2e2835..b6d642e 100644
--- a/phinx-autoload.php
+++ b/phinx-autoload.php
@@ -1,19 +1,9 @@
<?php
/* Autoloader for robmorgan/phinx 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();
-}
-
-$fedoraClassLoader->addPrefixes(array(
- 'Symfony\\Component\\' => $vendorDir,
- 'Phinx\\' => dirname(__DIR__)
+\Fedora\Autoloader\Autoload::addPsr4('Phinx\\', __DIR__);
+\Fedora\Autoloader\Dependencies::required(array(
+ '/usr/share/php/Symfony/Component/autoload.php',
));
-