Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Unexpected if clause in ResourceController #113

@Wilt

Description

@Wilt

In line https://github.com/phly/PhlyRestfully/blob/master/src/PhlyRestfully/ResourceController.php#L606 there is an unexpected if clause checking $id and isMethodAllowedForCollection. PUT methods with an $id are mapped to this update method and it is never used for updating collections...
All PUT methods without $id will map to replaceList according to https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/Controller/AbstractRestfulController.php#L417
I don't understand the reason for this if clause.

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