mirror of
https://github.com/stan220/WildcardEventDispatcher.git
synced 2026-09-08 16:28:35 +00:00
Add Travis CI testing
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
|
||||
before_script: composer install --dev
|
||||
@@ -1,5 +1,7 @@
|
||||
# WildcardEventDispatcher
|
||||
|
||||
[](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
|
||||
|
||||
+3
-5
@@ -1,9 +1,7 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
if (file_exists($file = __DIR__.'/../vendor/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;
|
||||
|
||||
Reference in New Issue
Block a user