[Fix] ServiceContainer: Bind class to app

This commit is contained in:
Rakhal Imming
2016-05-19 10:45:51 +02:00
parent 83fefc2180
commit 72174b6974

View File

@@ -14,6 +14,8 @@ class ShoppingcartServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bind('cart', 'Gloudemans\Shoppingcart\Cart');
$config = __DIR__ . '/../config/cart.php';
$this->mergeConfigFrom($config, 'cart');
@@ -26,4 +28,4 @@ class ShoppingcartServiceProvider extends ServiceProvider
], 'migrations');
}
}
}
}