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

Issue #2391251 by Pol, Fabianx: Create a messenger service based on https://www.drupal.org/node/2278383 #23

Merged
merged 26 commits into from
Jun 5, 2015
Merged

Conversation

drupol
Copy link
Collaborator

@drupol drupol commented Jun 3, 2015

This is just a test that I'm doing, I don't know where this is gonna lead.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling abe0664 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@dawehner
Copy link
Collaborator

dawehner commented Jun 3, 2015

I thought the idea on the longrun would be to use \Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface, so we could implement that interface already?

@drupol
Copy link
Collaborator Author

drupol commented Jun 3, 2015

I'll check this out.

@drupol
Copy link
Collaborator Author

drupol commented Jun 3, 2015

How to use it with the MessengerInterface ?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e21233c on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e21233c on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e21233c on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e21233c on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e21233c on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 47c126a on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" />
</project>
Copy link
Owner

Choose a reason for hiding this comment

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

What is that?

Copy link
Collaborator Author

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.

@LionsAd
Copy link
Owner

LionsAd commented Jun 4, 2015

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 9899d69 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

* @codeCoverageIgnore
*/
class LegacyMessenger implements MessengerInterface {
public function addMessage($message, $type = self::STATUS, $repeat = FALSE) {
Copy link
Owner

Choose a reason for hiding this comment

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

Missing {@inheritdoc}

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 28ba224 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@@ -0,0 +1,81 @@
<?php
Copy link
Owner

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.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 58aa868 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 58aa868 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 58aa868 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@LionsAd LionsAd added RTBM and removed Needs review labels Jun 4, 2015
@LionsAd
Copy link
Owner

LionsAd commented Jun 4, 2015

RTBM, just needs some tests.

@dawehner
Copy link
Collaborator

dawehner commented Jun 4, 2015

Hey, getting this in maybe helps people in the core issue to be convinced :P

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0a77022 on Polzme:Implements-Messenger-service into 1d74456 on LionsAd:7.x-1.x.

@LionsAd LionsAd changed the title Implements Messenger service. Issue #2391251 by Pol, Fabianx: Create a messenger service based on https://www.drupal.org/node/2278383 Jun 5, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 9d57788 on Polzme:Implements-Messenger-service into 73f9e47 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 75dc6f8 on Polzme:Implements-Messenger-service into 73f9e47 on LionsAd:7.x-1.x.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 75dc6f8 on Polzme:Implements-Messenger-service into 73f9e47 on LionsAd:7.x-1.x.

LionsAd added a commit that referenced this pull request Jun 5, 2015
Issue #2391251 by Pol, Fabianx: Create a messenger service based on https://www.drupal.org/node/2278383
@LionsAd LionsAd merged commit 1428c46 into LionsAd:7.x-1.x Jun 5, 2015
@drupol drupol deleted the Implements-Messenger-service branch June 8, 2015 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants