Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Giving a Warning namespaces to FlashMessager #5633

Merged
merged 1 commit into from
Feb 18, 2014
Merged

Giving a Warning namespaces to FlashMessager #5633

merged 1 commit into from
Feb 18, 2014

Conversation

ltouro
Copy link
Contributor

@ltouro ltouro commented Dec 19, 2013

This change was made by another user and excluded afterwards for some reason. Just putting it back

This change was made by another user and excluded after for some reason. Just putting it back
@snapshotpl
Copy link
Contributor

Looks ok. BTW you can write private-helper method to add_Message(), has_Messages(), getCurrent_Messages() and hasCurrent_Messages. They differ only in that they use a different constant.

* Add a message with "warning" type
*
* @param string $message
* @return FlashMessenger
Copy link
Contributor

Choose a reason for hiding this comment

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

@return self

@Maks3w
Copy link
Member

Maks3w commented Jan 2, 2014

@ltouro Please send a PR to zf2-documentation adding your feature

@ltouro
Copy link
Contributor Author

ltouro commented Jan 3, 2014

@Maks3w I would be happy to do that but I have no idea how to. I noticed the git zf2-documentation but don't know which files I should edit

@ghost ghost assigned Maks3w Feb 18, 2014
Maks3w added a commit that referenced this pull request Feb 18, 2014
Maks3w added a commit that referenced this pull request Feb 18, 2014
Maks3w added a commit that referenced this pull request Feb 18, 2014
@Maks3w Maks3w merged commit 7ef5814 into zendframework:master Feb 18, 2014
@Martin-P
Copy link
Contributor

Please reopen this pull request, because it is incomplete.

Pull request #4836 is the complete one, because there Zend\View\Helper\FlashMessenger is updated too with PluginFlashMessenger::NAMESPACE_WARNING => 'warning' (https://github.com/manuscle/zf2/blob/6216c0d3436895d9b2cfbdd721445e6ff4f4e26e/library/Zend/View/Helper/FlashMessenger.php#L34).

@Martin-P
Copy link
Contributor

I realize it just now, but even tests for this new functionality are missing.

@Martin-P
Copy link
Contributor

@Maks3w @weierophinney Can someone add the code from #4836 too? This PR is incomplete, because tests are missing and Zend\View\Helper\FlashMessenger is not updated with the new warning namespace. Both this PR and #4836 are closed, so if you need a new PR for this please let me know and I will create a separate PR for the missing parts.

@Martin-P
Copy link
Contributor

That's part of the problem and is discussed in #5705 It is there for 8 months now, but is never merged with master. Those parts are connected to this PR and should be updated at the same time?

@froschdesign
Copy link
Member

Please read the comments:

This PR is target for 2.3.

and the mailing list: Almost ready for 2.3.0!

@Martin-P
Copy link
Contributor

Okay, I read the comments. I still find it odd to split up these parts as separate updates and update 1 part in 2.2.6 and the other part in 2.3.0. I would expect both parts to be updated at the same time, because IMO they belong together especially because the view helper now implements all namespaces except the one added in this PR. Perhaps it is just my way of looking at this issue :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants