aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-08 17:13:20 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-01-08 17:13:20 +0100
commit5ecee2a737f0a198247aa72fd19e58b8597ebfb6 (patch)
tree1fe7ba5445caffa596dfa1f2bd9751b61a75854c
parent6b8151076bc3912ea65ef996d2b95fdb76735dff (diff)
downloadMime-5ecee2a737f0a198247aa72fd19e58b8597ebfb6.zip
Mime-5ecee2a737f0a198247aa72fd19e58b8597ebfb6.tar.gz
Mime-5ecee2a737f0a198247aa72fd19e58b8597ebfb6.tar.bz2
Parameters: Use `Hoa\Zformat`.
-rw-r--r--Mime.php9
-rw-r--r--composer.json3
2 files changed, 7 insertions, 5 deletions
diff --git a/Mime.php b/Mime.php
index bf36a7e..1c24523 100644
--- a/Mime.php
+++ b/Mime.php
@@ -39,6 +39,7 @@ namespace Hoa\Mime;
use Hoa\Consistency;
use Hoa\Core;
use Hoa\Stream;
+use Hoa\Zformat;
/**
* Class \Hoa\Mime.
@@ -49,7 +50,7 @@ use Hoa\Stream;
* @copyright Copyright © 2007-2015 Hoa community
* @license New BSD License
*/
-class Mime implements Core\Parameter\Parameterizable
+class Mime implements Zformat\Parameterizable
{
/**
* Structure: media/type part.
@@ -82,7 +83,7 @@ class Mime implements Core\Parameter\Parameterizable
/**
* Parameters.
*
- * @var \Hoa\Core\Parameter
+ * @var \Hoa\Zformat\Parameter
*/
private $_parameters = null;
@@ -144,7 +145,7 @@ class Mime implements Core\Parameter\Parameterizable
*/
public function __construct(Stream $stream, Array $parameters = [])
{
- $this->_parameters = new Core\Parameter(
+ $this->_parameters = new Zformat\Parameter(
$this,
[],
[
@@ -174,7 +175,7 @@ class Mime 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 c5dc1ea..4dbe8bb 100644
--- a/composer.json
+++ b/composer.json
@@ -24,7 +24,8 @@
"hoa/consistency": "~0.0",
"hoa/core" : "~2.0",
"hoa/exception" : "~0.0",
- "hoa/stream" : "~0.0"
+ "hoa/stream" : "~0.0",
+ "hoa/zformat" : "~0.0"
},
"require-dev": {
"hoa/file": "~0.0",