From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 7 Sep 2014 13:51:17 -0400
Subject: Adapt PATH for CLI

Forwarded: not-needed
---
 bin/doctrine-dbal.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/doctrine-dbal.php b/bin/doctrine-dbal.php
index 4a88f78..a95601b 100644
--- a/bin/doctrine-dbal.php
+++ b/bin/doctrine-dbal.php
@@ -1,3 +1,4 @@
+#!/usr/bin/php
 <?php
 
 use Doctrine\DBAL\Tools\Console\ConsoleRunner;
@@ -11,10 +12,10 @@ fwrite(
 
 echo PHP_EOL . PHP_EOL;
 
-$files       = [__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php'];
+$files       = [__DIR__ . '/../src/autoload.php', __DIR__ . '/../share/php/Doctrine/DBAL/autoload.php'];
 $loader      = null;
 $cwd         = getcwd();
-$directories = [$cwd, $cwd . DIRECTORY_SEPARATOR . 'config'];
+$directories = [$cwd, $cwd . DIRECTORY_SEPARATOR . 'config', '/etc/doctrine', '/etc/doctrine/dbal'];
 $configFile  = null;
 
 foreach ($files as $file) {
