aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-11-20 13:16:44 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-11-23 21:45:06 +0100
commitcfdb171fcb29044cea3f7beb00962616374e429e (patch)
tree6708dc81e6da7088b6260352636428466eea46de
parent3bc446bc00849bf51166adc415d77aa375d48d8c (diff)
downloadStream-cfdb171fcb29044cea3f7beb00962616374e429e.zip
Stream-cfdb171fcb29044cea3f7beb00962616374e429e.tar.gz
Stream-cfdb171fcb29044cea3f7beb00962616374e429e.tar.bz2
Exception: Use `Hoa\Exception`.
The core is being splitted into several libraries. `Hoa\Exception` is one of them.
-rw-r--r--Exception.php6
-rw-r--r--Stream.php3
-rw-r--r--composer.json3
3 files changed, 6 insertions, 6 deletions
diff --git a/Exception.php b/Exception.php
index 1ac0a85..d4948f7 100644
--- a/Exception.php
+++ b/Exception.php
@@ -36,16 +36,16 @@
namespace Hoa\Stream;
-use Hoa\Core;
+use Hoa\Exception as HoaException;
/**
* Class \Hoa\Stream\Exception.
*
- * Extending the \Hoa\Core\Exception class.
+ * Extending the \Hoa\Exception\Exception class.
*
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class Exception extends Core\Exception
+class Exception extends HoaException
{
}
diff --git a/Stream.php b/Stream.php
index 9ba0552..4a80579 100644
--- a/Stream.php
+++ b/Stream.php
@@ -240,7 +240,7 @@ abstract class Stream implements Core\Event\Listenable
* @param string $streamName Stream name (e.g. path or URL).
* @param \Hoa\Stream\Context $context Context.
* @return resource
- * @throws \Hoa\Core\Exception
+ * @throws \Hoa\Exception\Exception
*/
abstract protected function &_open($streamName, Context $context = null);
@@ -549,7 +549,6 @@ abstract class Stream implements Core\Event\Listenable
* @param string $listenerId Listener ID.
* @param mixed $callable Callable.
* @return \Hoa\Stream
- * @return \Hoa\Core\Exception
*/
public function on($listenerId, $callable)
{
diff --git a/composer.json b/composer.json
index 923d533..a206ded 100644
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,8 @@
"source": "http://git.hoa-project.net/"
},
"require": {
- "hoa/core": "~2.0"
+ "hoa/core" : "~2.0",
+ "hoa/exception": "~0.0"
},
"autoload": {
"psr-4": {