forked from LiveCarta/PayPal-PHP-SDK
Updated version of SDK Core
- Updated sample to not use its own composer.json
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user