summaryrefslogtreecommitdiffstats
path: root/php-doctrine-dbal-bin.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-12-10 15:23:16 +0100
committerRemi Collet <remi@remirepo.net>2018-12-10 15:23:16 +0100
commit52e0753736b95204623952be41d1b9dfd45cee59 (patch)
tree9a9f827015338e4e650ac6b63d43f0dd3ee9631d /php-doctrine-dbal-bin.patch
parentfed5d8dda37d24c1171e925b8265a2611cd660b7 (diff)
v2.9.0
Diffstat (limited to 'php-doctrine-dbal-bin.patch')
-rw-r--r--php-doctrine-dbal-bin.patch22
1 files changed, 8 insertions, 14 deletions
diff --git a/php-doctrine-dbal-bin.patch b/php-doctrine-dbal-bin.patch
index b16d61f..abb302e 100644
--- a/php-doctrine-dbal-bin.patch
+++ b/php-doctrine-dbal-bin.patch
@@ -1,15 +1,9 @@
-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 @@
+diff -up ./bin/doctrine-dbal.php.rpm ./bin/doctrine-dbal.php
+--- ./bin/doctrine-dbal.php.rpm 2018-12-10 15:16:50.314834508 +0100
++++ ./bin/doctrine-dbal.php 2018-12-10 15:16:54.519857316 +0100
+@@ -1,26 +1,21 @@
+#!/usr/bin/env 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';
+
@@ -19,13 +13,13 @@ index 3d1131f..f99b2da 100644
+$classLoaderSymfony = new \Doctrine\Common\ClassLoader('Symfony');
+$classLoaderSymfony->register();
+
- use Symfony\Component\Console\Helper\HelperSet;
use Doctrine\DBAL\Tools\Console\ConsoleRunner;
+ use Symfony\Component\Console\Helper\HelperSet;
--$files = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php');
+-$files = [__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php'];
-$loader = null;
$cwd = getcwd();
- $directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config');
+ $directories = [$cwd, $cwd . DIRECTORY_SEPARATOR . 'config'];
$configFile = null;
-foreach ($files as $file) {
@@ -36,7 +30,7 @@ index 3d1131f..f99b2da 100644
- }
-}
-
--if ( ! $loader) {
+-if (! $loader) {
- throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?');
-}
-