Question about method parameters #39
              
                Unanswered
              
          
                  
                    
                      nicolagianelli
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
While using this package I saw that only Model parameters are converted to create the uri, if I use the parameter as an "int $id" it isn't converted.
By watching the codebase I think this is the expected behaviour but it's a bit missleading for me, why not using all parameters to create the uri?
For example if I create a method "switch(int $id)" it's converted to an uri like "resource/switch", instead, if I use "switch(User $user)" it's converted to "resource/switch/{user}".
Thank you anyway for your effort in making this package.
Code reference I saw where the parameters are converted to generate the uri.
Beta Was this translation helpful? Give feedback.
All reactions