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

Allow use of array to resolve uri #1365

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

YummYume
Copy link
Contributor

Closes #1361.

This PR (re)allows the use of an array instead of an object to resolve a file path. I also went ahead and reintroduced this feature for the twig filter.

I moved the fixPropertyPath function to a utils file since it was also needed in the directoryName function because of the date property contained in the array.

src/Util/PropertyPathUtils.php Outdated Show resolved Hide resolved
src/Mapping/PropertyMapping.php Outdated Show resolved Hide resolved
@YummYume
Copy link
Contributor Author

Thanks @garak, fixed

@garak
Copy link
Collaborator

garak commented Feb 19, 2023

Thanks @garak, fixed

Actually not, please check again

@YummYume
Copy link
Contributor Author

My bad, should be good now 👌

@garak garak merged commit 6f884a2 into dustin10:master Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use an array instead of an object
2 participants