Skip to content

Make Method References easier to use with arrays #228

Open
@Blackskyliner

Description

@Blackskyliner

Hi there,

I have to following problem and the documentation didn't pointed out how to do this right.

I got a function where I got an array parameter like so: @param array $rules Array with #Route elements - Now this obviously doesn't work but it would feel kinda natural to me if it were working.

Maybe with some modifiers like #Route:key and #Route:value so it would be more specific. In my case I would need both the key and value mapping inside the array as I specify some routing redirection thingy in there whereas it is a source => destination mapping.

Is there a way to do this with the current supplied possibilities (with annotations!)? If so then why is the documentation about it either bad or non-existent?

(I feel the examples in the documentation are just not good enough to point out how some of the annotation features really work... - Therefore I also can't make them better as I don't exactly know how the feature really works in it's depths)

If this feature does not exist could it be, somehow, added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions