aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-13 22:57:18 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-12-13 22:57:18 +0100
commit210d4f24222365d921c0bb42062de59fe97c6e3d (patch)
tree7e2d3a33ff7ed9492e741e06b41f30efea9e0f88
parent9195f12c5f122df0aeac88524ebe9aac76f778d4 (diff)
downloadRegistry-210d4f24222365d921c0bb42062de59fe97c6e3d.zip
Registry-210d4f24222365d921c0bb42062de59fe97c6e3d.tar.gz
Registry-210d4f24222365d921c0bb42062de59fe97c6e3d.tar.bz2
Protocol: Use `Hoa\Protocol`.
-rw-r--r--Registry.php12
-rw-r--r--composer.json3
2 files changed, 8 insertions, 7 deletions
diff --git a/Registry.php b/Registry.php
index 875d043..3bec7bd 100644
--- a/Registry.php
+++ b/Registry.php
@@ -37,7 +37,7 @@
namespace Hoa\Registry;
use Hoa\Consistency;
-use Hoa\Core;
+use Hoa\Protocol;
/**
* Class \Hoa\Registry.
@@ -154,12 +154,12 @@ class Registry extends \ArrayObject
/**
* Class \Hoa\Registry\_Protocol.
*
- * hoa://Library/Registry component.
+ * The `hoa://Library/Registry` node.
*
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class _Protocol extends Core\Protocol
+class _Protocol extends Protocol\Node
{
/**
* Component's name.
@@ -188,8 +188,8 @@ class _Protocol extends Core\Protocol
Consistency::flexEntity('Hoa\Registry\Registry');
/**
- * Add the hoa://Library/Registry component. Should be use to reach/get an entry
- * in the \Hoa\Registry, e.g.: resolve('hoa://Library/Registry#AnID').
+ * Add the `hoa://Library/Registry` node. Should be use to reach/get an entry
+ * in the registry, e.g.: resolve('hoa://Library/Registry#AnID')`.
*/
-$protocol = Core::getInstance()->getProtocol();
+$protocol = Protocol::getInstance();
$protocol['Library'][] = new _Protocol();
diff --git a/composer.json b/composer.json
index 423697b..26bf90e 100644
--- a/composer.json
+++ b/composer.json
@@ -23,7 +23,8 @@
"require": {
"hoa/consistency": "~0.0",
"hoa/core" : "~2.0",
- "hoa/exception" : "~0.0"
+ "hoa/exception" : "~0.0",
+ "hoa/protocol" : "~0.0"
},
"require-dev": {
"hoa/test": "~1.0"