Skip to content

Conversation

@Nyholm
Copy link
Member

@Nyholm Nyholm commented Aug 19, 2017

We can use Common\Message instead

@Nyholm Nyholm requested a review from damienalexandre August 19, 2017 22:23
$message->setMessage($value);
$message->setTranslation($value);
$message->setDomain($domain);
$message->setDomain($locale);
Copy link
Contributor

Choose a reason for hiding this comment

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

setLocale?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you

Copy link
Contributor

@damienalexandre damienalexandre left a comment

Choose a reason for hiding this comment

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

👍

@Nyholm
Copy link
Member Author

Nyholm commented Aug 19, 2017

Thank you for the review. I will merge #128 first and then make sure to write some tests to this PR to make sure the validation works.

@Nyholm Nyholm force-pushed the patch-editinPlace branch from b5ffd3e to ce8628c Compare August 19, 2017 23:49
@Nyholm Nyholm merged commit a5bdcad into master Aug 20, 2017
@Nyholm Nyholm deleted the patch-editinPlace branch August 20, 2017 00:17
list($domain, $translationKey) = explode('|', $key);

$message = new EditInPlaceMessage();
$message = new Message();
Copy link
Member

Choose a reason for hiding this comment

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

Based on this PR it seems the common Message can be made immutable (by removing setters and adding constructor arguments). Am I right about this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, for this use case.. But do we want it immutable? hm, maybe we do.

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

Labels

None yet

3 participants