Kdyby/Events
Kdyby/Events are compatible with events dispatcher in doctrine/common, so you can use them with Doctrine.
Installation
The best way to install Kdyby/Events is using Composer:
$ composer require kdyby/events
Documentation
Learn more in the documentation.
Homepage http://www.kdyby.org and repository http://github.com/kdyby/events.
-
v3.1.2 v3.1.2
-
v3.1.1 v3.1.1
- Fix compatibility with PHP 7.2 (@xificurk).
-
v3.1.0 v3.1.0
This release is for Nette
~2.4
-
v3.0.3 v3.0.3
This release is for Nette
2.3.*
-
v3.0.2 v3.0.2
- Compatibility with Nette 2.4; thx @mrtnzlml
- Allow symfony/event-dispatcher ~3.0
- DI: in CLI mode, ignore debugMode and disable diagnostics panel by default
- #98 Panel: fixed missing .tracy-label wrapper; thx @JanTvrdik
- #82 Closure can be registered as listener; thx @hranicka
- #82
CallableSubscriber
: allows to use __call(); thx @hranicka; For more info, look at the interface description - #94 Fixed registering subscribers in config section
events.subscribers
; thx @sneznaovca
This release is for Nette
~2.3
(which means also~2.4
). -
v2.4.1 v2.4.1
- Moved aliases hack to aliases.php and removed eval. by @Zemistr
- Fixed removing listeners with aliased method name by @brabijan
- DI: Ignore accessors in autowireEvents by @matej21
- Add namespace to events in
LifeCycleEvent
- Fixed duplicate service creation using alias in Nette 2.3 by @richard-ejem
- Panel: fixed callback typehint by @matej21 & @klimesf
- Drop PHP 5.3 compatibility
- #95 Fixed compatibility with nette/di v2.4; thx @enumag
- #87 removeEventListener(): fixed emptying list of sorted events; thx @matej21
This release is for Nette
~2.3
(You should start migrating to~3.0
releases of Kdyby/Events) -
v3.0.1 v3.0.1
- #95 Fixed compatibility with nette/di v2.4; thx @enumag
- #87 removeEventListener(): fixed emptying list of sorted events; thx @matej21
This release is for Nette
~2.3
-
v3.0.0 v3.0.0
- Added
globalDispatchFirst
option by @enumag - Moved aliases hack to aliases.php and removed eval. by @Zemistr
- Fixed removing listeners with aliased method name by @brabijan
- DI: Ignore accessors in autowireEvents by @matej21
- Add namespace to events in
LifeCycleEvent
- Fixed duplicate service creation using alias in Nette 2.3 by @richard-ejem
- Panel: fixed callback typehint by @matej21 & @klimesf
- Drop PHP 5.3 compatibility
This release is for Nette
~2.3
- Added
-
v2.4.0 v2.4.0
This release is for Nette
~2.3
-
v2.3.2 v2.3.2
This release is for Nette
2.2.*
-
v2.3.1 v2.3.1
- [BC BREAK] Introduced
NamespacedEventManager
explanation here. But as long as you're using this extension according to the documentation, you're fine. This is only relevant to Kdyby\Doctrine, which fixes the BC Break internally
This release is for Nette
~2.2
- [BC BREAK] Introduced
-
v2.1.4 v2.1.4
- [BC BREAK] Introduced
NamespacedEventManager
explanation here. But as long as you're using this extension according to the documentation, you're fine. This is only relevant to Kdyby\Doctrine, which fixes the BC Break internally
This release is for Nette
2.1.*
- [BC BREAK] Introduced
-
v2.3.0 v2.3.0
- Event namespaces respect class inheritance #55 - this is a big improvement, thanks to @JanTvrdik and @norbe for making this happen!
- If you happened to name a public persistent property
onSomething
and you presenter is a registered service, it would have been replaced by Event object which might result in breaking of the application. You would notice this during development, but it was a unnecesary situation. Now it's fixed, all properties that have annotation@persistent
or@inject
will be excluded from autowiring of Events.
This release is for Nette
2.2.*
-
v2.1.3 v2.1.3
- Event namespaces respect class inheritance #55 - this is a big improvement, thanks to @JanTvrdik and @norbe for making this happen!
- If you happened to name a public persistent property
onSomething
and you presenter is a registered service, it would have been replaced by Event object which might result in breaking of the application. You would notice this during development, but it was a unnecesary situation. Now it's fixed, all properties that have annotation@persistent
or@inject
will be excluded from autowiring of Events.
This release is for Nette
2.1.*
-
v2.2.0 v2.2.0
- Bumped Nette dependency on 2.2
- dropped last few usages of
Nette\Callback
-
v2.1.1 v2.1.1
- Locked Nette dependency to
2.1.*
- fixed compiling of
DI\Container::onInitialize
to DI Container (there was an edge case, where it wasn't added to the container)
- Locked Nette dependency to
-
v2.1.0 v2.1.0
- Fixed compatibility with Nette
- Fixed registering objects without
Subscriber
interface - Diagnostics panel can be configured to output only sections that the programmer cares about
events: debugger: # theese are default values dispatchTree: off dispatchLog: on events: on listeners: off
And old options
debugger: count
anddebugger: off
still work.- Mirror for symfony components using it's EventDispatcher (partial compatibility bridge)
- Calling getListeners() without arg returns array of arrays (better compatibility with Doctrine) thx @vojtech-dobes
- better travis build process
-
v2.0.2 v2.0.2
- Diagnostics: 'debugger: off' hides whole panel
- EventManager can catch and process exceptions using
IExceptionHandler
- Dropped usage of deprecated
Nette\Callback
-
v2.0.1 v2.0.1
Bumped dependency on Nette to
~2.1@dev
-
v1.2.5 v1.2.5
- Locked dependency to Nette
2.0.*
- Debugger option to disable only panel and not bar
- Locked dependency to Nette
-
v2.0 v2.0
First release to require development version of Nette
-
v1.2.4 v1.2.4
- Added
Event::append()
&Event::prepend()
- Fixed catching service creation exceptions in panel
- Added
-
v1.2.3 v1.2.3
This version was released because it fixes the hack for placing
onInitialize
event at the right place in container. -
v1.2.2 v1.2.2
- Nette bar panel now shows callgraph #19
-
v1.2.0 v1.2.0
-
v1.1.1 v1.1.1
This release contains number of small code optimalizations, mainly for the
Event
class. -
v1.1.0 v1.1.0
Changelog highlights:
- LazyEventManager: fixed getListeners() call without event name
- Support for custom namespace syntax
- Callback aliases #8
- Multiple event handlers #10
- Global priorities #11
- Created event Nette\DI\Container::onInitialize
-
v1.0.1 v1.0.1
Changelog highlights: