Skip to content

Commit

Permalink
service provider updated;
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed Aug 21, 2023
1 parent ccc6398 commit 458017a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [
{
Expand Down Expand Up @@ -28,7 +28,7 @@
"extra": {
"laravel": {
"providers": [
"Hans\\Starter\\StarterServiceProvider"
"Hans\\Starter\\LyraServiceProvider"
]
}
},
Expand Down
10 changes: 5 additions & 5 deletions src/StarterServiceProvider.php → src/LyraServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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()) {
Expand All @@ -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');
}

/**
Expand All @@ -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');
}
}
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -42,7 +42,7 @@ protected function getApplicationTimezone($app)
protected function getPackageProviders($app)
{
return [
StarterServiceProvider::class,
LyraServiceProvider::class,
];
}

Expand Down

0 comments on commit 458017a

Please sign in to comment.