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 0db91c5 commit 3371332
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ApiResources/Webhooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class Webhooks extends ApiController
'update' => [],
'destroy' => [],
],
'request' => \IgniterLabs\Webhook\Requests\Outgoing::class,
'repository' => \IgniterLabs\Webhook\Models\Webhook::class,
'request' => \IgniterLabs\Webhook\Http\Requests\OutgoingRequest::class,
'repository' => \IgniterLabs\Webhook\Models\Outgoing::class,
'transformer' => \IgniterLabs\Webhook\ApiResources\Transformers\WebhookTransformer::class,
];

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Outgoing.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Outgoing extends \Igniter\Admin\Classes\AdminController
public array $formConfig = [
'name' => 'lang:igniterlabs.webhook::default.outgoing.text_form_name',
'model' => \IgniterLabs\Webhook\Models\Outgoing::class,
'request' => \IgniterLabs\Webhook\Requests\Outgoing::class,
'request' => \IgniterLabs\Webhook\Http\Requests\OutgoingRequest::class,
'create' => [
'title' => 'lang:admin::lang.form.create_title',
'redirect' => 'igniterlabs/webhook/outgoing/edit/{id}',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace IgniterLabs\Webhook\Requests;
namespace IgniterLabs\Webhook\Http\Requests;

use Igniter\System\Classes\FormRequest;

class Outgoing extends FormRequest
class OutgoingRequest extends FormRequest
{
public function attributes()
{
Expand Down

0 comments on commit 3371332

Please sign in to comment.