Updated version of SDK Core

- Updated sample to not use its own composer.json
This commit is contained in:
Jay Patel
2014-09-24 15:03:08 -05:00
parent 82729a38c1
commit 72ddeccc0a
3 changed files with 7 additions and 18 deletions

View File

@@ -4,12 +4,15 @@
*/
// Include the composer autoloader
// The location of your project's vendor autoloader.
$composerAutoload = dirname(dirname(dirname(__DIR__))) . '/autoload.php';
if (!file_exists($composerAutoload))
{
$composerAutoload = __DIR__ .'/vendor/autoload.php';
//If the project is used as its own project, it would use rest-api-sdk-php composer autoloader.
$composerAutoload = dirname(__DIR__) .'/vendor/autoload.php';
if(!file_exists(__DIR__ .'/vendor/autoload.php')) {
if(!file_exists($composerAutoload)) {
echo "The 'vendor' folder is missing. You must run 'composer update' to resolve application dependencies.\nPlease see the README for more information.\n";
exit(1);
}