From cb0be096e58a44392feec142edf11d9cdddb14e7 Mon Sep 17 00:00:00 2001 From: Patrick Samson Date: Sat, 11 Jul 2015 11:33:04 -0400 Subject: [PATCH] Added Event snippets --- Event/Event-createClassListener.sublime-snippet | 8 ++++++++ Event/Event-fire.sublime-snippet | 8 ++++++++ Event/Event-firing.sublime-snippet | 8 ++++++++ Event/Event-flush.sublime-snippet | 8 ++++++++ Event/Event-forget.sublime-snippet | 8 ++++++++ Event/Event-getListeners.sublime-snippet | 8 ++++++++ Event/Event-hasListeners.sublime-snippet | 8 ++++++++ Event/Event-listen.sublime-snippet | 8 ++++++++ Event/Event-makeListener.sublime-snippet | 8 ++++++++ Event/Event-push.sublime-snippet | 8 ++++++++ Event/Event-subscribe.sublime-snippet | 8 ++++++++ Event/Event-until.sublime-snippet | 8 ++++++++ Log/Log-useDailyFiles.sublime-snippet | 2 +- Log/Log-useFiles.sublime-snippet | 2 +- 14 files changed, 98 insertions(+), 2 deletions(-) create mode 100755 Event/Event-createClassListener.sublime-snippet create mode 100755 Event/Event-fire.sublime-snippet create mode 100755 Event/Event-firing.sublime-snippet create mode 100755 Event/Event-flush.sublime-snippet create mode 100755 Event/Event-forget.sublime-snippet create mode 100755 Event/Event-getListeners.sublime-snippet create mode 100755 Event/Event-hasListeners.sublime-snippet create mode 100755 Event/Event-listen.sublime-snippet create mode 100755 Event/Event-makeListener.sublime-snippet create mode 100755 Event/Event-push.sublime-snippet create mode 100755 Event/Event-subscribe.sublime-snippet create mode 100755 Event/Event-until.sublime-snippet diff --git a/Event/Event-createClassListener.sublime-snippet b/Event/Event-createClassListener.sublime-snippet new file mode 100755 index 0000000..56e0f85 --- /dev/null +++ b/Event/Event-createClassListener.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::createClassListener + source.php, source.html + Create a class based listener using the IoC container. + diff --git a/Event/Event-fire.sublime-snippet b/Event/Event-fire.sublime-snippet new file mode 100755 index 0000000..ea2d238 --- /dev/null +++ b/Event/Event-fire.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::fire + source.php, source.html + Fire an event and call the listeners. + diff --git a/Event/Event-firing.sublime-snippet b/Event/Event-firing.sublime-snippet new file mode 100755 index 0000000..dab3f72 --- /dev/null +++ b/Event/Event-firing.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::firing + source.php, source.html + Get the event that is currently firing. + diff --git a/Event/Event-flush.sublime-snippet b/Event/Event-flush.sublime-snippet new file mode 100755 index 0000000..4be13d8 --- /dev/null +++ b/Event/Event-flush.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::flush + source.php, source.html + Flush a set of pushed events. + diff --git a/Event/Event-forget.sublime-snippet b/Event/Event-forget.sublime-snippet new file mode 100755 index 0000000..1ab8a12 --- /dev/null +++ b/Event/Event-forget.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::forget + source.php, source.html + Remove a set of listeners from the dispatcher. + diff --git a/Event/Event-getListeners.sublime-snippet b/Event/Event-getListeners.sublime-snippet new file mode 100755 index 0000000..2710ae0 --- /dev/null +++ b/Event/Event-getListeners.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::getListeners + source.php, source.html + Get all of the listeners for a given event name. + diff --git a/Event/Event-hasListeners.sublime-snippet b/Event/Event-hasListeners.sublime-snippet new file mode 100755 index 0000000..740f773 --- /dev/null +++ b/Event/Event-hasListeners.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::hasListeners + source.php, source.html + Determine if a given event has listeners. + diff --git a/Event/Event-listen.sublime-snippet b/Event/Event-listen.sublime-snippet new file mode 100755 index 0000000..c6b880b --- /dev/null +++ b/Event/Event-listen.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::listen + source.php, source.html + Register an event listener with the dispatcher. + diff --git a/Event/Event-makeListener.sublime-snippet b/Event/Event-makeListener.sublime-snippet new file mode 100755 index 0000000..727ca6f --- /dev/null +++ b/Event/Event-makeListener.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::makeListener + source.php, source.html + Register an event listener with the dispatcher. + diff --git a/Event/Event-push.sublime-snippet b/Event/Event-push.sublime-snippet new file mode 100755 index 0000000..9c8959f --- /dev/null +++ b/Event/Event-push.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::push + source.php, source.html + Register an event and payload to be fired later. + diff --git a/Event/Event-subscribe.sublime-snippet b/Event/Event-subscribe.sublime-snippet new file mode 100755 index 0000000..5cdb915 --- /dev/null +++ b/Event/Event-subscribe.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::subscribe + source.php, source.html + Register an event subscriber with the dispatcher. + diff --git a/Event/Event-until.sublime-snippet b/Event/Event-until.sublime-snippet new file mode 100755 index 0000000..597b92c --- /dev/null +++ b/Event/Event-until.sublime-snippet @@ -0,0 +1,8 @@ + + + Event::until + source.php, source.html + Fire an event until the first non-null response is returned. + diff --git a/Log/Log-useDailyFiles.sublime-snippet b/Log/Log-useDailyFiles.sublime-snippet index de99f2a..e3f483f 100755 --- a/Log/Log-useDailyFiles.sublime-snippet +++ b/Log/Log-useDailyFiles.sublime-snippet @@ -1,6 +1,6 @@ Log::useDailyFiles source.php, source.html diff --git a/Log/Log-useFiles.sublime-snippet b/Log/Log-useFiles.sublime-snippet index 44abc66..5b606b2 100755 --- a/Log/Log-useFiles.sublime-snippet +++ b/Log/Log-useFiles.sublime-snippet @@ -1,6 +1,6 @@ Log::useFiles source.php, source.html