robwittman / shopify-php-sdk

PHP SDK for development with the Shopify API
MIT License
65 stars 41 forks source link

SDK usage witout \Shopify\Shopify::init() #2

Closed robwittman closed 8 years ago

robwittman commented 8 years ago

If you attempt to use the SDK without calling init() first, it attempts to execute even though there is no static instance. This should fail gracefully and toss the requisite exception, and helpful message

robwittman commented 8 years ago

When \Shopify\Shopify::instance() is called, it checks for NULL. If it is indeed NULL, it throws ApiException saying to initialize