Skip to content

Commit

Permalink
Refactoring, deleted not used lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ayvazyan10 committed Apr 24, 2023
1 parent 773d990 commit 1a0b878
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ayvazyan10/ameriabankvpos",
"description": "AmeriaBank VPOS API service for Laravel",
"description": "AmeriaBank VPOS service for Laravel",
"type": "library",
"license": "MIT",
"authors": [
Expand Down Expand Up @@ -42,7 +42,7 @@
"Ayvazyan10\\AmeriaBankVPOS\\AmeriaBankVPOSServiceProvider"
],
"aliases": {
"AmeriaBankVPOS": "AmeriaBankVPOS"
"AmeriaBankVPOS": "Ayvazyan10\\AmeriaBankVPOS\\Facades\\AmeriaBankVPOS"
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/AmeriaBankVPOSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Ayvazyan10\AmeriaBankVPOS;

use Ayvazyan10\AmeriaBankVPOS\Facades\AmeriaBankVPOS as AmeriaFacade;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;

class AmeriaBankVPOSServiceProvider extends ServiceProvider
Expand All @@ -24,9 +22,6 @@ public function boot(): void
if ($this->app->runningInConsole()) {
$this->bootForConsole();
}

$loader = AliasLoader::getInstance();
$loader->alias('AmeriaBankVPOS', AmeriaFacade::class);
}

/**
Expand Down
6 changes: 5 additions & 1 deletion src/Facades/AmeriaBankVPOS.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

class AmeriaBankVPOS extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor(): string
{
return 'ameriabank-vpos';
}
}

0 comments on commit 1a0b878

Please sign in to comment.