diff --git a/composer.json b/composer.json index 66c4132..287b430 100644 --- a/composer.json +++ b/composer.json @@ -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": [ @@ -42,7 +42,7 @@ "Ayvazyan10\\AmeriaBankVPOS\\AmeriaBankVPOSServiceProvider" ], "aliases": { - "AmeriaBankVPOS": "AmeriaBankVPOS" + "AmeriaBankVPOS": "Ayvazyan10\\AmeriaBankVPOS\\Facades\\AmeriaBankVPOS" } } } diff --git a/src/AmeriaBankVPOSServiceProvider.php b/src/AmeriaBankVPOSServiceProvider.php index 001baa2..ad19f94 100644 --- a/src/AmeriaBankVPOSServiceProvider.php +++ b/src/AmeriaBankVPOSServiceProvider.php @@ -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 @@ -24,9 +22,6 @@ public function boot(): void if ($this->app->runningInConsole()) { $this->bootForConsole(); } - - $loader = AliasLoader::getInstance(); - $loader->alias('AmeriaBankVPOS', AmeriaFacade::class); } /** diff --git a/src/Facades/AmeriaBankVPOS.php b/src/Facades/AmeriaBankVPOS.php index cafde1d..cd09d78 100644 --- a/src/Facades/AmeriaBankVPOS.php +++ b/src/Facades/AmeriaBankVPOS.php @@ -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'; } } -