diff --git a/composer.json b/composer.json index 82cb58e..c2bb947 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": ">=5.4", - "arc/base": "~1.0||~2.0" + "arc/base": "~2.1" }, "autoload": { "psr-4": { diff --git a/src/events/EventsTree.php b/src/events/EventsTree.php index 671d944..53bf557 100644 --- a/src/events/EventsTree.php +++ b/src/events/EventsTree.php @@ -98,7 +98,7 @@ private function addListener($eventName, $callback, $capture = false) { $listenerSection = ( $capture ? 'capture' : 'listen' ) . '.' . $eventName; if (!is_callable($callback)) { - throw new \arc\ExceptionIlligalRequest('Method is not callable.', \arc\exceptions::ILLEGAL_ARGUMENT); + throw new \arc\IllegalRequest('Method is not callable.', \arc\exceptions::ILLEGAL_ARGUMENT); } if (!isset( $this->tree->nodeValue[ $listenerSection ])) { $this->tree->nodeValue[ $listenerSection ] = array();