Initial commit

This commit is contained in:
Rob Gloudemans
2013-05-22 20:12:34 +02:00
commit fa7e90e48a
12 changed files with 517 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?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);
});
}
}