Skip to content

Commit

Permalink
Move Requests into Http\Requests
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed May 29, 2024
1 parent 9b3078d commit 2c47e2a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/ApiResources/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Categories extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\Cart\Requests\CategoryRequest::class,
'request' => \Igniter\Cart\Http\Requests\CategoryRequest::class,
'repository' => Repositories\CategoryRepository::class,
'transformer' => Transformers\CategoryTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/ApiResources/Customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Customers extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\User\Requests\CustomerRequest::class,
'request' => \Igniter\User\Http\Requests\CustomerRequest::class,

Check failure on line 25 in src/ApiResources/Customers.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 - Static Analysis

Class Igniter\User\Http\Requests\CustomerRequest not found.

Check failure on line 25 in src/ApiResources/Customers.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 - Static Analysis

Class Igniter\User\Http\Requests\CustomerRequest not found.
'repository' => Repositories\CustomerRepository::class,
'transformer' => Transformers\CustomerTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/ApiResources/DiningTables.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class DiningTables extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\Reservation\Requests\DiningTableRequest::class,
'request' => \Igniter\Reservation\Http\Requests\DiningTableRequest::class,
'repository' => Repositories\DiningTableRepository::class,
'transformer' => Transformers\DiningTableTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/ApiResources/Locations.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Locations extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\Local\Requests\LocationRequest::class,
'request' => \Igniter\Local\Http\Requests\LocationRequest::class,
'repository' => Repositories\LocationRepository::class,
'transformer' => Transformers\LocationTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/ApiResources/Menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Menus extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\Cart\Requests\MenuRequest::class,
'request' => \Igniter\Cart\Http\Requests\MenuRequest::class,
'repository' => Repositories\MenuRepository::class,
'transformer' => Transformers\MenuTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/ApiResources/Reviews.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Reviews extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \Igniter\Local\Requests\Review::class,
'request' => \Igniter\Local\Http\Requests\ReviewRequest::class,
'repository' => Repositories\ReviewRepository::class,
'transformer' => Transformers\ReviewTransformer::class,
];
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Resources extends \Igniter\Admin\Classes\AdminController
public array $formConfig = [
'name' => 'APIs',
'model' => \Igniter\Api\Models\Resource::class,
'request' => \Igniter\Api\Requests\ResourceRequest::class,
'request' => \Igniter\Api\Http\Requests\ResourceRequest::class,
'edit' => [
'title' => 'lang:admin::lang.form.edit_title',
'redirect' => 'igniter/api/resources/edit/{id}',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Igniter\Api\Requests;
namespace Igniter\Api\Http\Requests;

use Igniter\System\Classes\FormRequest;

Expand All @@ -17,4 +17,4 @@ public function rules()
'meta.authorization.*' => ['alpha'],
];
}
}
}

0 comments on commit 2c47e2a

Please sign in to comment.