1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
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 3d1131f..1a9455d 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
@@ -20,10 +21,10 @@
use Symfony\Component\Console\Helper\HelperSet;
use Doctrine\DBAL\Tools\Console\ConsoleRunner;
-$files = array(__DIR__ . '/../vendor/autoload.php', __DIR__ . '/../../../autoload.php');
+$files = array(__DIR__ . '/../lib/Doctrine/DBAL/autoload.php', __DIR__ . '/../share/php/Doctrine/DBAL/autoload.php');
$loader = null;
$cwd = getcwd();
-$directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config');
+$directories = array($cwd, $cwd . DIRECTORY_SEPARATOR . 'config', '/etc/doctrine', '/etc/doctrine/dbal');
$configFile = null;
foreach ($files as $file) {
|