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 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 8 May 2015 10:56:38 -0400
Subject: Adapt to actual autoload.php
Forwarded: not-needed
---
phpdox | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/phpdox b/phpdox
index 0e76af5..ba49b93 100755
--- a/phpdox
+++ b/phpdox
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
<?php
/*
* Copyright (c) 2010-2017 Arne Blankerts <arne@blankerts.de>
@@ -40,24 +40,7 @@
*
*/
-require __DIR__ . '/src/runtimecheck.php';
-require __DIR__ . '/src/autoload.php';
-
-$found = false;
-foreach(array(__DIR__ . '/vendor', __DIR__ . '/../..') as $vendor) {
- if (file_exists($vendor . '/autoload.php')) {
- $found = true;
- require $vendor . '/autoload.php';
- break;
- }
-}
-
-if (!$found) {
- fwrite(STDERR,
- "The vendor directory was not found at the expected locations.\nDid you run composer install?\n\n"
- );
- exit(1);
-}
+require 'TheSeer/phpDox/autoload.php';
$factory = new TheSeer\phpDox\Factory(
new \TheSeer\phpDox\FileInfo(__DIR__),
|