From 62f7eeb67cd702c99e91ee19c8364adfd2f579c7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 5 Jul 2015 08:35:04 +0200 Subject: php-doctrine-dbal: 2.5.1, backpot from fedora --- php-doctrine-dbal-bin.patch | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 php-doctrine-dbal-bin.patch (limited to 'php-doctrine-dbal-bin.patch') 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 + . + */ + ++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'; + -- cgit