summaryrefslogtreecommitdiffstats
path: root/php-doctrine-dbal-bin.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-05 08:35:04 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-05 08:35:04 +0200
commit62f7eeb67cd702c99e91ee19c8364adfd2f579c7 (patch)
tree250749df4f974593065183574d10376934607683 /php-doctrine-dbal-bin.patch
parent1eeeb359948aa4ef2360195b00f0a5177e848e68 (diff)
php-doctrine-dbal: 2.5.1, backpot from fedora
Diffstat (limited to 'php-doctrine-dbal-bin.patch')
-rw-r--r--php-doctrine-dbal-bin.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/php-doctrine-dbal-bin.patch b/php-doctrine-dbal-bin.patch
new file mode 100644
index 0000000..993e20e
--- /dev/null
+++ b/php-doctrine-dbal-bin.patch
@@ -0,0 +1,45 @@
+diff --git a/bin/doctrine-dbal.php b/bin/doctrine-dbal.php
+index 3d1131f..f99b2da 100644
+--- a/bin/doctrine-dbal.php
++++ b/bin/doctrine-dbal.php
+@@ -1,3 +1,4 @@
++#!/usr/bin/php
+ <?php
+ /*
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+@@ -17,27 +18,21 @@
+ * <http://www.doctrine-project.org>.
+ */
+
++require_once '/usr/share/php/Doctrine/Common/ClassLoader.php';
++
++$classLoaderDoctrine = new \Doctrine\Common\ClassLoader('Doctrine');
++$classLoaderDoctrine->register();
++
++$classLoaderSymfony = new \Doctrine\Common\ClassLoader('Symfony');
++$classLoaderSymfony->register();
++
+ use Symfony\Component\Console\Helper\HelperSet;
+ use Doctrine\DBAL\Tools\Console\ConsoleRunner;
+
+-$files = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php');
+-$loader = null;
+ $cwd = getcwd();
+ $directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config');
+ $configFile = null;
+
+-foreach ($files as $file) {
+- if (file_exists($file)) {
+- $loader = require $file;
+-
+- break;
+- }
+-}
+-
+-if ( ! $loader) {
+- throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?');
+-}
+-
+ foreach ($directories as $directory) {
+ $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php';
+