Files
LaravelShoppingcart/src/Gloudemans/Shoppingcart/ShoppingcartServiceProvider.php
Rob Gloudemans fa7e90e48a Initial commit
2013-05-22 20:12:34 +02:00

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);
});
}
}