aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-08 22:49:52 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-08 22:50:37 +0100
commitb5e50324ce69c38624c4baf251f07b8270fc608d (patch)
tree856f9b3536da2dbb4ffa43f2627378d8a333973b
parent5e894d82420e32a4d2188092d6a6732c4de87521 (diff)
downloadSession-b5e50324ce69c38624c4baf251f07b8270fc608d.zip
Session-b5e50324ce69c38624c4baf251f07b8270fc608d.tar.gz
Session-b5e50324ce69c38624c4baf251f07b8270fc608d.tar.bz2
Event: Remove `event` calls.
-rw-r--r--README.md2
-rw-r--r--Session.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 66c7518..b4cc355 100644
--- a/README.md
+++ b/README.md
@@ -75,7 +75,7 @@ Considering the previous example, we will declare the namespace as expired when
the session is empty:
```php
-event('hoa://Event/Session/user:expired')
+Hoa\Event\Event::getEvent('hoa://Event/Session/user:expired')
->attach(function (Hoa\Event\Bucket $bucket) {
echo 'expired', "\n";
});
diff --git a/Session.php b/Session.php
index 7a41ee6..757bef5 100644
--- a/Session.php
+++ b/Session.php
@@ -389,7 +389,7 @@ class Session
$expired = static::EVENT_CHANNEL . $namespace . ':expired';
if (true === $exception &&
- false === event($expired)->isListened()) {
+ false === Event::getEvent($expired)->isListened()) {
throw new Exception\Expired(
'Namespace %s has expired. All data belonging to this ' .
'namespace are lost.',