Skip to content

Commit ced0d40

Browse files
committed
various small fixes
1 parent d0e990e commit ced0d40

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"providers": [
3434
"FintechSystems\\Whmcs\\WhmcsServiceProvider"
3535
]
36+
},
37+
"aliases": {
38+
"Whmcs": "FintechSystems\\Whmcs\\Facades\\Whmcs"
3639
}
3740
}
3841
}

config/whmcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
return [
44
'url' => env('WHMCS_URL'),
55
'api_identifier' => env('WHMCS_API_IDENTIFIER'),
6-
'api_secret' => env('WHMCS_SECRET'),
6+
'api_secret' => env('WHMCS_API_SECRET'),
77
];

src/Facades/WhmcsApi.php renamed to src/Facades/Whmcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Illuminate\Support\Facades\Facade;
66

7-
class WhmcsApi extends Facade
7+
class Whmcs extends Facade
88
{
99
protected static function getFacadeAccessor()
1010
{

src/Whmcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Whmcs implements BillingProvider
1111
private $api_secret;
1212

1313
public function __construct($client)
14-
{
14+
{
1515
$this->url = $client['url'];
1616
$this->api_identifier = $client['api_identifier'];
1717
$this->api_secret = $client['api_secret'];

src/WhmcsServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function boot()
1010
{
1111
$this->publishes([
1212
__DIR__.'/../config/whmcs.php' => config_path('whmcs.php'),
13-
]);
13+
], 'whmcs-config');
1414
}
1515

1616
public function register()
@@ -19,7 +19,7 @@ public function register()
1919
__DIR__.'/../config/whmcs.php', 'whmcs'
2020
);
2121

22-
$this->app->bind('whmcs-api', function () {
22+
$this->app->bind('whmcs', function () {
2323
return new Whmcs([
2424
'url' => config('whmcs.url'),
2525
'api_identifier' => config('whmcs.api_identifier'),

0 commit comments

Comments
 (0)