Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Type/InputFilter/CreateResourceInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function render(string $name, Component $inputFilter): string
// chain inputs below

return \$this
->add(new CsrfInput('Create{$name}Csrf', true));
->add(new CsrfInput('create{$name}Csrf', true));
BODY);
$class->addMethod($init);

Expand Down
2 changes: 1 addition & 1 deletion src/Type/InputFilter/DeleteResourceInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function render(string $name, Component $inputFilter, Component $input):

return \$this
->add(new {$input->getClassName()}('confirmation'))
->add(new CsrfInput('Delete{$name}Csrf', true));
->add(new CsrfInput('delete{$name}Csrf', true));
BODY);
$class->addMethod($init);

Expand Down
2 changes: 1 addition & 1 deletion src/Type/InputFilter/EditResourceInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function render(string $name, Component $inputFilter): string
// chain inputs below

return \$this
->add(new CsrfInput('Edit{$name}Csrf', true));
->add(new CsrfInput('edit{$name}Csrf', true));
BODY);
$class->addMethod($init);

Expand Down
6 changes: 3 additions & 3 deletions test/Type/InputFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public function init(): self
// chain inputs below

return \$this
->add(new CsrfInput('CreateBookStoreCsrf', true));
->add(new CsrfInput('createBookStoreCsrf', true));
}
}

Expand Down Expand Up @@ -516,7 +516,7 @@ public function init(): self

return \$this
->add(new ConfirmDeleteBookStoreInput('confirmation'))
->add(new CsrfInput('DeleteBookStoreCsrf', true));
->add(new CsrfInput('deleteBookStoreCsrf', true));
}
}

Expand Down Expand Up @@ -546,7 +546,7 @@ public function init(): self
// chain inputs below

return \$this
->add(new CsrfInput('EditBookStoreCsrf', true));
->add(new CsrfInput('editBookStoreCsrf', true));
}
}

Expand Down