Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit a2ec245

Browse files
committed
Protocol: Use Hoa\Protocol.
1 parent a1379d4 commit a2ec245

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Stringbuffer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
namespace Hoa\Stringbuffer;
3838

3939
use Hoa\Consistency;
40-
use Hoa\Core;
40+
use Hoa\Protocol;
4141
use Hoa\Stream;
4242

4343
/**
@@ -236,12 +236,12 @@ public function initializeWith($string)
236236
/**
237237
* Class \Hoa\Stringbuffer\_Protocol.
238238
*
239-
* hoa://Library/Stringbuffer component.
239+
* The `hoa://Library/Stringbuffer` node.
240240
*
241241
* @copyright Copyright © 2007-2015 Hoa community
242242
* @license New BSD License
243243
*/
244-
class _Protocol extends Core\Protocol
244+
class _Protocol extends Protocol\Node
245245
{
246246
/**
247247
* Component's name.
@@ -280,8 +280,8 @@ public function reachId($id)
280280
Consistency::flexEntity('Hoa\Stringbuffer\Stringbuffer');
281281

282282
/**
283-
* Add the hoa://Library/Stringbuffer component. Help to know to real path of a
283+
* Add the `hoa://Library/Stringbuffer` node. Help to know the real path of a
284284
* stringbuffer.
285285
*/
286-
$protocol = Core::getInstance()->getProtocol();
286+
$protocol = Protocol::getInstance();
287287
$protocol['Library'][] = new _Protocol();

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"hoa/consistency": "~0.0",
2525
"hoa/core" : "~2.0",
2626
"hoa/exception" : "~0.0",
27+
"hoa/protocol" : "~0.0",
2728
"hoa/stream" : "~0.0"
2829
},
2930
"autoload": {

0 commit comments

Comments
 (0)