Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring PaymentController #196

Merged
merged 3 commits into from Sep 19, 2014
Merged

Refactoring PaymentController #196

merged 3 commits into from Sep 19, 2014

Conversation

bolotyuh
Copy link
Collaborator

No description provided.


// процент скидки для постоянных участников
$paymentsConfig = $this->container->getParameter('stfalcon_event.config');
$discountAmount = 100 * (float)$paymentsConfig['discount'];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

такі речі треба в модель ховати

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stfalcon але ж там вик. контейнер

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

передавай просто знижку в модель і всередині рахуй

stfalcon added a commit that referenced this pull request Sep 19, 2014
@stfalcon stfalcon merged commit 341c4a3 into stfalcon:refactoring Sep 19, 2014
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.

None yet

2 participants