[Vote][PSR-14] Readiness Vote

122 views
Skip to first unread message

Larry Garfield

unread,
Jan 16, 2019, 5:22:08 PM1/16/19
to php...@googlegroups.com
I, Larry Garfield, being of debatably sound mind and body, acting in my
capacity as Editor of PSR-14, do hereby call a Readiness Vote for PSR-14,
"Event Dispatcher".

This vote is for members of the PSR-14 Working Group only, who are:

Larry Garfield
Cees-Jan Kiewiet
Elizabeth Smith
Matthew O'Phinney
Ryan Weaver
Benni Mack

If you are not one of those people, please do not vote on this thread.

The spec to be voted on is here:

https://github.com/php-fig/fig-standards/blob/master/proposed/event-dispatcher.md
https://github.com/php-fig/fig-standards/blob/master/proposed/event-dispatcher-meta.md

Additionally, a Composer package with the spec-defined interfaces is here (the
0.7.0 tag):

https://github.com/php-fig/event-dispatcher
https://packagist.org/packages/psr/event-dispatcher

A set of utilities created by the Working Group (that are not part of the spec
proper but account for common shared use cases) is here (the 0.7.2 tag):

https://github.com/php-fig/event-dispatcher-util
https://packagist.org/packages/fig/event-dispatcher-util

Additionally, the Working Group offers the following implementations as
demonstration of the viability of the specification:

* Tukio (https://github.com/Crell/Tukio, 0.7.2 tag): A full implementation of
the specification written by Larry Garfield
* Phly Event Dispatcher (https://github.com/phly/phly-event-dispatcher): A
full implementation of the specification written by Matthew O'Phinney

Additionally, Matthew has produced a prototype implementation that uses the
Swoole extension to defer listener execution asynchronously. From Matthew:

----------
- https://github.com/weierophinney/mwop.net/blob/master/src/Blog/Listener/
BlogPostEventListenersDelegator.php - this shows three listeners on the same
event being attached to a provider. The last one on there is interesting,
because:
- https://github.com/weierophinney/mwop.net/blob/master/src/Blog/Listener/
CacheBlogPostListenerFactory.php#L21-L27 it gets decorated as a queueable
listener, and operates async.

Another one:
- https://github.com/weierophinney/mwop.net/blob/master/src/Contact/
SendMessageListenerDelegator.php - this registers a single listener for an
event to a provider. This listener is also interesting:
- https://github.com/weierophinney/mwop.net/blob/master/src/Contact/
SendMessageListenerFactory.php#L37-L43 - because it, too, gets decorated as a
queueable listener, and operates async.

How does that work?
- https://github.com/phly/phly-swoole-taskworker/blob/master/src/
QueueableListener.php#L40 - enqueues a `Task` instance with the listener as
the handler, and the event as the sole argument. Swoole then runs it via its
task workers.
----------

The vote will remain open for 2 weeks ending on 30 January, or until all 6 WG
members have voted, whichever comes first. If it meets a 2/3 majority, the
spec will go to the Core Committee for Review, moderated by our Sponsor, Cees-
Jan. It will be eligible for an Acceptance Vote one month from that date.

--Larry Garfield
PSR-14 Editor

PS: \o/
signature.asc

Larry Garfield

unread,
Jan 16, 2019, 5:32:29 PM1/16/19
to php...@googlegroups.com
+1

--Larry Garfield
signature.asc

Matthew Weier O'Phinney

unread,
Jan 16, 2019, 6:46:24 PM1/16/19
to php...@googlegroups.com
+1 from me

--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/4353796.rg0NdbNKlp%40vulcan.
For more options, visit https://groups.google.com/d/optout.


--
he/him

Benjamin Mack

unread,
Jan 17, 2019, 1:27:35 AM1/17/19
to php...@googlegroups.com

Elizabeth M Smith

unread,
Jan 18, 2019, 5:16:53 PM1/18/19
to PHP Framework Interoperability Group

Aye or +1 From me as well

(now that I have pried the computer from my children's fingers)

Ryan Weaver

unread,
Jan 30, 2019, 9:56:04 AM1/30/19
to PHP Framework Interoperability Group
+1

Cees-Jan Kiewiet

unread,
Jan 30, 2019, 10:30:49 AM1/30/19
to php...@googlegroups.com
+1



--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.

Cees-Jan Kiewiet

unread,
Jan 30, 2019, 12:57:38 PM1/30/19
to php...@googlegroups.com
As of this time, we have all 6 members of the working group responding and voting, with the following results: 

+1 : 6 
+0 : 0 
-1 : 0 

As such, the vote passes.  I'll open the review period shortly. 
--
Reply all
Reply to author
Forward
0 new messages