Skip to content

Commit

Permalink
change back to public
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilvestre committed Oct 25, 2024
1 parent a106327 commit f500a89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Bundle/DependencyInjection/SyliusGridExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ static function (ChildDefinition $definition, AsFilter $attribute, \Reflector $r
}

$definition->addTag(AsFilter::SERVICE_TAG, [
'type' => $attribute->getType() ?? $reflector->getName(),
'form_type' => $attribute->getFormType(),
'type' => $attribute->type ?? $reflector->getName(),
'form_type' => $attribute->formType,
]);
},
);
Expand Down
14 changes: 2 additions & 12 deletions src/Component/Attribute/AsFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,8 @@ final class AsFilter
* @param class-string $formType The form type class name to use for filter rendering
*/
public function __construct(
private readonly string $formType,
private readonly ?string $type = null,
public readonly string $formType,
public readonly ?string $type = null,
) {
}

public function getFormType(): string
{
return $this->formType;
}

public function getType(): ?string
{
return $this->type;
}
}

0 comments on commit f500a89

Please sign in to comment.