Skip to content

Refactoring and code cleanup#31

Open
nederdirk wants to merge 17 commits into
xavierlacot:masterfrom
Recras:refactoring_codecleanup
Open

Refactoring and code cleanup#31
nederdirk wants to merge 17 commits into
xavierlacot:masterfrom
Recras:refactoring_codecleanup

Conversation

@nederdirk
Copy link
Copy Markdown
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