Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Automatically injected url parameter should be optional if they have a default value #3

Open
DerManoMann opened this issue May 23, 2016 · 0 comments

Comments

@DerManoMann
Copy link
Owner

Url parameter extracted from the silex url pattern; ie {id} should be flagged optional if the corresponding controller parameter has a default value.

Example:

    /**
     * @SLX\Route(
     *   @SLX\Request(method="POST", uri="/foo/{id}")
     * )
     */
    public function foo(Application $app, Request $request, $id = null) {

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

No branches or pull requests

1 participant