Skip to content

Commit

Permalink
Replace greensight with ensi
Browse files Browse the repository at this point in the history
  • Loading branch information
arrilot committed Oct 5, 2021
1 parent f69e311 commit 6e73659
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## Установка

1. `composer require greensight/laravel-serve-swagger`
2. Добавьте `Greensight\LaravelServeSwagger\ServeSwaggerServiceProvider::class` в Package Service Providers в `config/app.php`
1. `composer require ensi/laravel-serve-swagger`
2. Добавьте `Ensi\LaravelServeSwagger\ServeSwaggerServiceProvider::class` в Package Service Providers в `config/app.php`
3. Скопируйте себе `config/serve-swagger.php` и настройте путь для роутинга и массив ссылок до ваших openapi3 конфигов

## Формат массива urls в конфиге
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "greensight/laravel-serve-swagger",
"name": "ensi/laravel-serve-swagger",
"description": "",
"type": "library",
"license": "MIT",
Expand All @@ -15,7 +15,7 @@
},
"autoload": {
"psr-4": {
"Greensight\\LaravelServeSwagger\\": "src/"
"Ensi\\LaravelServeSwagger\\": "src/"
}
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/SwaggerController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Greensight\LaravelServeSwagger\Controllers;
namespace Ensi\LaravelServeSwagger\Controllers;

use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
Expand Down
6 changes: 3 additions & 3 deletions src/ServeSwaggerServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Greensight\LaravelServeSwagger;
namespace Ensi\LaravelServeSwagger;

use Greensight\LaravelServeSwagger\Controllers\SwaggerController;
use Ensi\LaravelServeSwagger\Controllers\SwaggerController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;

Expand All @@ -20,7 +20,7 @@ public function boot()

$this->loadViewsFrom(__DIR__ . '/views', 'serve-swagger');

Route::namespace('Greensight\LaravelServeSwagger\Controllers')
Route::namespace('Ensi\LaravelServeSwagger\Controllers')
->name('serve-swagger.')
->prefix(config('serve-swagger.path'))
->group(function () {
Expand Down

0 comments on commit 6e73659

Please sign in to comment.