6 Commits
Author SHA1 Message Date
Jeremy Mikola d96fe85d12 Allow for greater Symfony2 compatibility (2.0 through 2.2) 2013-02-26 14:21:37 -05:00
Jeremy Mikola 36fbd1c880 Add Travis CI testing 2013-02-26 13:56:14 -05:00
Jeremy Mikola 1996172dbe Update ignored files 2013-02-26 13:54:46 -05:00
Jeremy Mikola b7860e16b4 Merge pull request #3 from eriksencosta/composer-autoload-path-fix
Updated path to the Composer generated autoload file
2013-02-26 10:48:55 -08:00
Eriksen Costa ef8369f930 updated path to the Composer generated autoload file 2013-01-04 18:37:06 -02:00
Jeremy Mikola 282231d728 Add bundle link 2012-02-17 14:11:36 -05:00
5 changed files with 19 additions and 9 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
composer.lock
phpunit.xml
vendor
composer.lock
composer.phar
+7
View File
@@ -0,0 +1,7 @@
language: php
php:
- 5.3
- 5.4
before_script: composer install --dev
+6
View File
@@ -1,11 +1,17 @@
# WildcardEventDispatcher
[![Build Status](https://travis-ci.org/jmikola/WildcardEventDispatcher.png?branch=master)](https://travis-ci.org/jmikola/WildcardEventDispatcher)
This library implements an event dispatcher, based on [Symfony2's interface][],
with wildcard syntax inspired by AMQP topic exchanges. Listeners may be bound to
a wildcard pattern and be notified if a dispatched event's name matches that
pattern. Literal event name matching is still supported.
If you are interested in using this library in a Symfony2 project, you may also
want to take a look at the corresponding [bundle][].
[Symfony2's interface]: https://github.com/symfony/EventDispatcher
[bundle]: https://github.com/jmikola/JmikolaWildcardEventDispatcherBundle
## Usage ##
+2 -1
View File
@@ -8,9 +8,10 @@
"authors": [
{ "name": "Jeremy Mikola", "email": "jmikola@gmail.com" }
],
"minimum-stability": "dev",
"require": {
"php": ">=5.3.2",
"symfony/event-dispatcher": ">=2.0-dev,<2.2-dev"
"symfony/event-dispatcher": ">=2.0.0,<2.3-dev"
},
"autoload": {
"psr-0": { "Jmikola": "src/" }
+3 -5
View File
@@ -1,9 +1,7 @@
<?php
<?php
if (file_exists($file = __DIR__.'/../vendor/.composer/autoload.php')) {
$loader = require_once $file;
} else {
if (!is_file($autoloadFile = __DIR__.'/../vendor/autoload.php')) {
throw new RuntimeException('Install dependencies to run test suite.');
}
$loader->add('Jmikola\\WildcardEventDispatcher', __DIR__.'/../src');
require $autoloadFile;