Skip to content

Commit

Permalink
fix: change namespace for blog api package
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jul 20, 2024
1 parent fcc2504 commit 3046a80
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
],
"autoload": {
"psr-4": {
"CSlant\\BlogApi\\": "src/"
"CSlant\\Blog\\Api\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"CSlant\\BlogApi\\Tests\\": "tests/"
"CSlant\\Blog\\Api\\Tests\\": "tests/"
}
},
"require": {
Expand All @@ -69,7 +69,7 @@
"extra": {
"laravel": {
"providers": [
"CSlant\\BlogApi\\Providers\\BlogApiServiceProvider"
"CSlant\\Blog\\Api\\Providers\\Blog\\ApiServiceProvider"
]
}
},
Expand Down
6 changes: 3 additions & 3 deletions routes/blog-api.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use CSlant\BlogApi\Http\Controllers\CategoryController;
use CSlant\BlogApi\Http\Controllers\PostController;
use CSlant\BlogApi\Http\Controllers\TagController;
use CSlant\Blog\Api\Http\Controllers\CategoryController;
use CSlant\Blog\Api\Http\Controllers\PostController;
use CSlant\Blog\Api\Http\Controllers\TagController;
use Illuminate\Support\Facades\Route;

/*
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Base/BaseCategoryController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CSlant\BlogApi\Http\Controllers\Base;
namespace CSlant\Blog\Api\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\CategoryController as BotbleCategoryController;

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Base/BasePostController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CSlant\BlogApi\Http\Controllers\Base;
namespace CSlant\Blog\Api\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\PostController as BotblePostController;

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Base/BaseTagController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CSlant\BlogApi\Http\Controllers\Base;
namespace CSlant\Blog\Api\Http\Controllers\Base;

use Botble\Blog\Http\Controllers\API\TagController as BotbleTagController;

Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/CategoryController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace CSlant\BlogApi\Http\Controllers;
namespace CSlant\Blog\Api\Http\Controllers;

use CSlant\BlogApi\Http\Controllers\Base\BaseCategoryController;
use CSlant\Blog\Api\Http\Controllers\Base\BaseCategoryController;

class CategoryController extends BaseCategoryController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/PostController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace CSlant\BlogApi\Http\Controllers;
namespace CSlant\Blog\Api\Http\Controllers;

use CSlant\BlogApi\Http\Controllers\Base\BasePostController;
use CSlant\Blog\Api\Http\Controllers\Base\BasePostController;

class PostController extends BasePostController
{
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace CSlant\BlogApi\Http\Controllers;
namespace CSlant\Blog\Api\Http\Controllers;

use CSlant\BlogApi\Http\Controllers\Base\BaseTagController;
use CSlant\Blog\Api\Http\Controllers\Base\BaseTagController;

class TagController extends BaseTagController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Traits/IsIncrementing.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace CSlant\BlogApi\Models\Traits;
namespace CSlant\Blog\Api\Models\Traits;

trait IsIncrementing
{
Expand Down
4 changes: 2 additions & 2 deletions src/Providers/BlogApiServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace CSlant\BlogApi\Providers;
namespace CSlant\Blog\Api\Providers;

use Illuminate\Support\ServiceProvider;

class BlogApiServiceProvider extends ServiceProvider
class Blog\ApiServiceProvider extends ServiceProvider

Check failure on line 7 in src/Providers/BlogApiServiceProvider.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.2

Syntax error, unexpected T_NAME_QUALIFIED, expecting T_STRING on line 7

Check failure on line 7 in src/Providers/BlogApiServiceProvider.php

View workflow job for this annotation

GitHub Actions / PHPStan - P8.3

Syntax error, unexpected T_NAME_QUALIFIED, expecting T_STRING on line 7
{
/**
* Bootstrap services.
Expand Down

0 comments on commit 3046a80

Please sign in to comment.