Skip to content

Special coding standard for controllers ? #3267

Closed
@greg0ire

Description

@greg0ire

On this page, it is stated the following : "Thou shalt use camelCase for method arguments"

However, on the controller documentation page, we can see that routing.yml uses underscore_case for route parameters, which implies that controller arguments use underscore too.

So, which convention should recommended ? I vote for underscore_case for controller arguments. If you agree, I'll make a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions