Skip to content

Conversation

@nederdirk
Copy link
Contributor

The code generator generated a lot of duplicate code, I made an effort to clean some of these duplications.
Some things that have been done:

  • Added an sfDoctrineRestGeneratorActions base class, holding common functions
  • Factored additional_params variable to the object scope (thus initializing the array only once in each request)
  • throw sfValidatorErrors when validations fail (technically not refactoring, but the semantics of the code stay the same)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant