mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
21 lines
459 B
PHP
21 lines
459 B
PHP
<?php namespace Gloudemans\Shoppingcart;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class ShoppingcartServiceProvider extends ServiceProvider {
|
|
|
|
/**
|
|
* Register the service provider.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
|
|
$this->app['cart'] = $this->app->share(function($app)
|
|
{
|
|
$session = $this->app['session'];
|
|
return new Cart($session);
|
|
});
|
|
}
|
|
} |