8000 [WIP] Request validator by y4roc · Pull Request #49002 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Request validator #49002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove serializer form default
  • Loading branch information
Thomas Hanke committed Jan 21, 2023
commit 5b12b32a4d60a2812105ccea6e3bf5443fd55711
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public function __construct(
public string $class,
public bool $override = true,
public array $order = [
self::ORDER_SERIALIZE,
self::ORDER_ATTRIBUTES,
self::ORDER_QUERY,
self::ORDER_REQUEST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function validateRequest(ControllerArgumentsEvent $event): void {
$class = $attributeArguments['class'];
$override = key_exists('override', $attributeArguments) ? $attributeArguments['override'] : true;
$order = key_exists('order', $attributeArguments) ? $attributeArguments['order'] : [
RequestValidator::ORDER_SERIALIZE,
RequestValidator::ORDER_ATTRIBUTES,
RequestValidator::ORDER_QUERY,
RequestValidator::ORDER_REQUEST,
Expand All @@ -57,7 +56,6 @@ public function validateRequest(ControllerArgumentsEvent $event): void {
$class = $attributeArguments[0];
$override = key_exists(1, $attributeArguments) ? $attributeArguments[1] : true;
$order = key_exists(2, $attributeArguments) ? $attributeArguments[2] : [
RequestValidator::ORDER_SERIALIZE,
RequestValidator::ORDER_ATTRIBUTES,
RequestValidator::ORDER_QUERY,
RequestValidator::ORDER_REQUEST,
Expand Down
0