Skip to content

Commit

Permalink
Removed v1.0 vendor publish error
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive committed Jan 19, 2016
1 parent 2d98435 commit b033174
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Providers/PayPalServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php namespace Srmklive\PayPal;
<?php namespace Srmklive\PayPal\Providers;

/**
* Class PayPalServiceProvider
* @package Srmklive\PayPal
*/

use Illuminate\Support\ServiceProvider;
use Srmklive\PayPal\Services\ExpressCheckout;

class PayPalServiceProvider extends ServiceProvider
{
Expand All @@ -25,11 +26,11 @@ public function boot()
{
// Publish config files
$this->publishes([
__DIR__. '/../config/config.php' => config_path('paypal.php'),
__DIR__. '/../../config/config.php' => config_path('paypal.php'),
]);

// Publish Lang Files
$this->loadTranslationsFrom(__DIR__.'/../lang', 'paypal');
$this->loadTranslationsFrom(__DIR__.'/../../lang', 'paypal');
}

/**
Expand All @@ -52,7 +53,7 @@ public function register()
private function registerPayPal()
{
$this->app->singleton('paypal', function () {
return new ExpressCheckout();
return new ExpressCheckout;
});
}

Expand All @@ -64,7 +65,7 @@ private function registerPayPal()
private function mergeConfig()
{
$this->mergeConfigFrom(
__DIR__. '/../config/config.php', 'paypal'
__DIR__. '/../../config/config.php', 'paypal'
);
}
}

0 comments on commit b033174

Please sign in to comment.