From 458017a6349447c1356f295a55d3b4cc38a460a5 Mon Sep 17 00:00:00 2001 From: Mohammad Mortazavi Date: Mon, 21 Aug 2023 19:35:05 +0330 Subject: [PATCH] service provider updated; --- composer.json | 6 +++--- ...rterServiceProvider.php => LyraServiceProvider.php} | 10 +++++----- tests/TestCase.php | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) rename src/{StarterServiceProvider.php => LyraServiceProvider.php} (81%) diff --git a/composer.json b/composer.json index bff5b04..56077f0 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "hans-thomas/starter", - "description": "package-starter is a predefined laravel packages scaffold", + "name": "hans-thomas/lyra", + "description": "payment gateway with offline purchase support", "license": "MIT", "authors": [ { @@ -28,7 +28,7 @@ "extra": { "laravel": { "providers": [ - "Hans\\Starter\\StarterServiceProvider" + "Hans\\Starter\\LyraServiceProvider" ] } }, diff --git a/src/StarterServiceProvider.php b/src/LyraServiceProvider.php similarity index 81% rename from src/StarterServiceProvider.php rename to src/LyraServiceProvider.php index 95c701f..c8d53eb 100644 --- a/src/StarterServiceProvider.php +++ b/src/LyraServiceProvider.php @@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Route; use Illuminate\Support\ServiceProvider; -class StarterServiceProvider extends ServiceProvider +class LyraServiceProvider extends ServiceProvider { /** * Register any application services. @@ -25,7 +25,7 @@ public function register() public function boot() { $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'starter'); + $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'lyra'); $this->registerRoutes(); if ($this->app->runningInConsole()) { @@ -41,7 +41,7 @@ public function boot() */ private function registerRoutes() { - Route::prefix('starter')->middleware('api')->group(__DIR__.'/../routes/api.php'); + Route::prefix('lyra')->middleware('api')->group(__DIR__.'/../routes/api.php'); } /** @@ -64,7 +64,7 @@ private function registerCommands() private function registerPublishes() { $this->publishes([ - __DIR__.'/../config/config.php' => config_path('starter.php'), - ], 'starter-config'); + __DIR__.'/../config/config.php' => config_path('lyra.php'), + ], 'lyra-config'); } } diff --git a/tests/TestCase.php b/tests/TestCase.php index 2dc31a0..73e0478 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,7 +2,7 @@ namespace Hans\Starter\Tests; -use Hans\Starter\StarterServiceProvider; +use Hans\Starter\LyraServiceProvider; use Illuminate\Foundation\Application; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Routing\Router; @@ -42,7 +42,7 @@ protected function getApplicationTimezone($app) protected function getPackageProviders($app) { return [ - StarterServiceProvider::class, + LyraServiceProvider::class, ]; }