Skip to content
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

[PropertyAccess] Unified path notation for arrays and objects #48067

Closed
kbond opened this issue Nov 1, 2022 · 3 comments
Closed

[PropertyAccess] Unified path notation for arrays and objects #48067

kbond opened this issue Nov 1, 2022 · 3 comments

Comments

@kbond
Copy link
Member

kbond commented Nov 1, 2022

Description

I know this has been brought up a couple times in the past but wanted to take a fresh look. (I know the form/validator depend on the current notation)

I'm thinking either a flag to opt-in on the existing PropertyAccessor or a new PropertyAccessorInterface implementation.

  1. opt-in flag or new implementation?
  2. if opt-in flag, what about deprecating the current notation as the default and making it opt-out in Symfony 7?

Example

Current:

$accessor->getValue($objectOrArray, '[key]method.property[key]property');

New:

$accessor->getValue($objectOrArray, 'key.method.property.key.property');
@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

@carsonbot
Copy link

Hello? This issue is about to be closed if nobody replies.

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants