Further codestyle changes

This commit is contained in:
Patrick Henninger
2019-01-14 18:05:10 +01:00
parent d6c7226e35
commit 21ebf67f99
13 changed files with 36 additions and 28 deletions

View File

@@ -8,7 +8,6 @@ use Illuminate\Support\ServiceProvider;
class ShoppingcartServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
@@ -18,10 +17,10 @@ class ShoppingcartServiceProvider extends ServiceProvider
{
$this->app->bind('cart', 'Gloudemans\Shoppingcart\Cart');
$config = __DIR__ . '/Config/cart.php';
$config = __DIR__.'/Config/cart.php';
$this->mergeConfigFrom($config, 'cart');
$this->publishes([__DIR__ . '/Config/cart.php' => config_path('cart.php')], 'config');
$this->publishes([__DIR__.'/Config/cart.php' => config_path('cart.php')], 'config');
$this->app['events']->listen(Logout::class, function () {
if ($this->app['config']->get('cart.destroy_on_logout')) {