Skip to content

Commit 537191b

Browse files
committed
Allowing for __construct config loading
1 parent 54996d8 commit 537191b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RocketCode/Shopify/ShopifyServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class ShopifyServiceProvider extends ServiceProvider
2020
*/
2121
public function register()
2222
{
23-
//
23+
$this->app->bind('ShopifyAPI', function($app, $config = array())
24+
{
25+
return new API($config);
26+
});
2427
}
2528

2629
public function boot()

0 commit comments

Comments
 (0)