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__),
