-
Notifications
You must be signed in to change notification settings - Fork 2
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
Issue #2391251 by Pol, Fabianx: Create a messenger service based on https://www.drupal.org/node/2278383 #23
Conversation
I thought the idea on the longrun would be to use |
I'll check this out. |
How to use it with the MessengerInterface ? |
2 similar comments
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="ProjectRootManager" version="2" /> | ||
</project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops sorry, it comes from PHPStorm.
I think for now the MessengerInterface is fine. As it is not part of Drupal 8, I think the best would be to move the MessengerInterface to service_container as well for now. I'll ping alexpott if Core is interested in the LegacyMessenger here. As always, we'll need some integration tests. |
* @codeCoverageIgnore | ||
*/ | ||
class LegacyMessenger implements MessengerInterface { | ||
public function addMessage($message, $type = self::STATUS, $repeat = FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing {@inheritdoc}
@@ -0,0 +1,81 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think moving to src/Messenger is better.
Tests had only been in lib/Drupal/service_container, because simpletest in D7 was missing PSR-4 support. It has that now, so for newer versions of Drupal we can switch over.
1 similar comment
RTBM, just needs some tests. |
Hey, getting this in maybe helps people in the core issue to be convinced :P |
Issue #2391251 by Pol, Fabianx: Create a messenger service based on https://www.drupal.org/node/2278383
This is just a test that I'm doing, I don't know where this is gonna lead.