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

Initial promotions implementation #1

Merged
merged 8 commits into from
Feb 22, 2013
Merged

Conversation

umpirsky
Copy link
Contributor

@umpirsky umpirsky commented Feb 7, 2013

No description provided.

{
public function __construct($type)
{
parent::__construct(sprintf('Promotion action of type "%s" already exist.', $type));
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO messages should not be hardcoded in exceptions...

Copy link

Choose a reason for hiding this comment

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

at least it should be translated

Copy link
Member

Choose a reason for hiding this comment

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

Translated? This exception is thrown if you try to register action via container tag, and name is taken. :) (in most cases)

Copy link

Choose a reason for hiding this comment

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

agree in such case have no sense

@umpirsky umpirsky mentioned this pull request Feb 12, 2013
@pjedrzejewski
Copy link
Member

YEAH! 👍 Nice work man!

pjedrzejewski pushed a commit that referenced this pull request Feb 22, 2013
Initial promotions implementation
@pjedrzejewski pjedrzejewski merged commit 7a804d5 into Sylius:master Feb 22, 2013
tleliberty referenced this pull request in eliberty/SyliusPromotionBundle Feb 20, 2018
Update ActionChoiceType.php
Zales0123 added a commit that referenced this pull request Feb 4, 2022
Zales0123 added a commit that referenced this pull request Jun 2, 2022
* 1.11:
  Specify explicit priorities for all form type extensions
  Small CS fixes
  Line length fixes
  PHP 8 syntax in bundles vol.2
  Typehint templating engines properly
  Fix line length issues
  PHP 8 syntax in bundles #1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants