aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-08 17:15:09 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-08 17:15:56 +0100
commitc97238a072e7e4d01d14c6303b7abbf38c198c17 (patch)
treea4e532d42df43f7a57f5c690809a86e0e9c25fe9
parent68d2fdf976b5bac88be268954b6f7a2aad58526d (diff)
downloadRouter-c97238a072e7e4d01d14c6303b7abbf38c198c17.zip
Router-c97238a072e7e4d01d14c6303b7abbf38c198c17.tar.gz
Router-c97238a072e7e4d01d14c6303b7abbf38c198c17.tar.bz2
Parameters: Use `Hoa\Zformat`.
-rw-r--r--Cli.php9
-rw-r--r--Http/Http.php9
-rw-r--r--composer.json3
3 files changed, 12 insertions, 9 deletions
diff --git a/Cli.php b/Cli.php
index 278add4..5fe86cb 100644
--- a/Cli.php
+++ b/Cli.php
@@ -37,6 +37,7 @@
namespace Hoa\Router;
use Hoa\Core;
+use Hoa\Zformat;
/**
* Class \Hoa\Router\Cli.
@@ -46,12 +47,12 @@ use Hoa\Core;
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class Cli extends Generic implements Core\Parameter\Parameterizable
+class Cli extends Generic implements Zformat\Parameterizable
{
/**
* Parameters.
*
- * @var \Hoa\Core\Parameter
+ * @var \Hoa\Zformat\Parameter
*/
protected $_parameters = null;
@@ -73,7 +74,7 @@ class Cli extends Generic implements Core\Parameter\Parameterizable
*/
public function __construct(Array $parameters = [])
{
- $this->_parameters = new Core\Parameter(
+ $this->_parameters = new Zformat\Parameter(
$this,
[],
[
@@ -113,7 +114,7 @@ class Cli extends Generic implements Core\Parameter\Parameterizable
/**
* Get parameters.
*
- * @return \Hoa\Core\Parameter
+ * @return \Hoa\Zformat\Parameter
*/
public function getParameters()
{
diff --git a/Http/Http.php b/Http/Http.php
index 3f3ad2c..cba5b70 100644
--- a/Http/Http.php
+++ b/Http/Http.php
@@ -39,6 +39,7 @@ namespace Hoa\Router\Http;
use Hoa\Consistency;
use Hoa\Core;
use Hoa\Router;
+use Hoa\Zformat;
/**
* Class \Hoa\Router\Http.
@@ -48,7 +49,7 @@ use Hoa\Router;
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class Http extends Router\Generic implements Core\Parameter\Parameterizable
+class Http extends Router\Generic implements Zformat\Parameterizable
{
/**
* Secure connection.
@@ -67,7 +68,7 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable
/**
* Parameters.
*
- * @var \Hoa\Core\Parameter
+ * @var \Hoa\Zformat\Parameter
*/
protected $_parameters = null;
@@ -138,7 +139,7 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable
*/
public function __construct(Array $parameters = [])
{
- $this->_parameters = new Core\Parameter(
+ $this->_parameters = new Zformat\Parameter(
$this,
[],
[
@@ -189,7 +190,7 @@ class Http extends Router\Generic implements Core\Parameter\Parameterizable
/**
* Get parameters.
*
- * @return \Hoa\Core\Parameter
+ * @return \Hoa\Zformat\Parameter
*/
public function getParameters()
{
diff --git a/composer.json b/composer.json
index 94efe76..9cc075e 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/zformat" : "~0.0"
},
"autoload": {
"psr-4": {