Skip to content

Commit

Permalink
various small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenefvdm committed Oct 23, 2021
1 parent d0e990e commit ced0d40
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"providers": [
"FintechSystems\\Whmcs\\WhmcsServiceProvider"
]
},
"aliases": {
"Whmcs": "FintechSystems\\Whmcs\\Facades\\Whmcs"
}
}
}
2 changes: 1 addition & 1 deletion config/whmcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
return [
'url' => env('WHMCS_URL'),
'api_identifier' => env('WHMCS_API_IDENTIFIER'),
'api_secret' => env('WHMCS_SECRET'),
'api_secret' => env('WHMCS_API_SECRET'),
];
2 changes: 1 addition & 1 deletion src/Facades/WhmcsApi.php → src/Facades/Whmcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Illuminate\Support\Facades\Facade;

class WhmcsApi extends Facade
class Whmcs extends Facade
{
protected static function getFacadeAccessor()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Whmcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Whmcs implements BillingProvider
private $api_secret;

public function __construct($client)
{
{
$this->url = $client['url'];
$this->api_identifier = $client['api_identifier'];
$this->api_secret = $client['api_secret'];
Expand Down
4 changes: 2 additions & 2 deletions src/WhmcsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function boot()
{
$this->publishes([
__DIR__.'/../config/whmcs.php' => config_path('whmcs.php'),
]);
], 'whmcs-config');
}

public function register()
Expand All @@ -19,7 +19,7 @@ public function register()
__DIR__.'/../config/whmcs.php', 'whmcs'
);

$this->app->bind('whmcs-api', function () {
$this->app->bind('whmcs', function () {
return new Whmcs([
'url' => config('whmcs.url'),
'api_identifier' => config('whmcs.api_identifier'),
Expand Down

0 comments on commit ced0d40

Please sign in to comment.