preinheimer/xhgui — pull request #78 by Oliver1984 (2013-12-09 14:25:24+00:00)
Title: Fix issue with correct autoload file if XHGui is being used as a dependency of another Composer project

Currently XHProf expects to have an own vendor subfolder with the autoload.php in it. In our project we want to use our own Composer file for the dependency management and we don't want to execute the install.php which would install another Composer version. So XHProf is a subproject in our projects' "vendor" folder.

Since Composer has a default autoload.php always in the "vendor" folder, I suggest changing the behaviour of the XHProf bootstrap.php to search for the default autoload.php in the vendor folder and only if it doesn't exist, using the XHProf autoload.php from the XHProf/vendor folder.