aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-10-15 09:49:33 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-10-15 09:49:33 +0200
commit2cd8c11be1f2896d599ab79a6bb38e4c79a818e4 (patch)
tree1735f956bb581ab8ce37cd9b87d9b651fe3c4fc8
parent716fd429ce72dc1d4c7a7d401594e35a725b41a8 (diff)
downloadStream-2cd8c11be1f2896d599ab79a6bb38e4c79a818e4.zip
Stream-2cd8c11be1f2896d599ab79a6bb38e4c79a818e4.tar.gz
Stream-2cd8c11be1f2896d599ab79a6bb38e4c79a818e4.tar.bz2
Define flex entities.
-rw-r--r--Filter/Filter.php9
-rw-r--r--Stream.php14
-rw-r--r--Wrapper/IWrapper/IWrapper.php9
-rw-r--r--Wrapper/Wrapper.php9
4 files changed, 38 insertions, 3 deletions
diff --git a/Filter/Filter.php b/Filter/Filter.php
index 587f363..ab8057b 100644
--- a/Filter/Filter.php
+++ b/Filter/Filter.php
@@ -252,3 +252,12 @@ abstract class Filter extends \Hoa\Stream {
}
}
+
+namespace {
+
+/**
+ * Flex entity.
+ */
+Hoa\Core\Consistency::flexEntity('Hoa\Stream\Filter\Filter');
+
+}
diff --git a/Stream.php b/Stream.php
index 95eada1..ef55986 100644
--- a/Stream.php
+++ b/Stream.php
@@ -668,13 +668,21 @@ class _Protocol extends \Hoa\Core\Protocol {
namespace {
-\Hoa\Core::registerShutDownFunction('\Hoa\Stream\Stream', '_Hoa_Stream');
+/**
+ * Flex entity.
+ */
+Hoa\Core\Consistency::flexEntity('Hoa\Stream\Stream');
+
+/**
+ * Shutdown method.
+ */
+Hoa\Core::registerShutdownFunction('\Hoa\Stream\Stream', '_Hoa_Stream');
/**
* Add the hoa://Library/Stream component. Should be use to reach/get an entry
* in the \Hoa\Stream register.
*/
-$protocol = \Hoa\Core::getInstance()->getProtocol();
-$protocol['Library'][] = new \Hoa\Stream\_Protocol();
+$protocol = Hoa\Core::getInstance()->getProtocol();
+$protocol['Library'][] = new Hoa\Stream\_Protocol();
}
diff --git a/Wrapper/IWrapper/IWrapper.php b/Wrapper/IWrapper/IWrapper.php
index 646e56d..d5a7751 100644
--- a/Wrapper/IWrapper/IWrapper.php
+++ b/Wrapper/IWrapper/IWrapper.php
@@ -75,3 +75,12 @@ interface IWrapper extends File, Stream {
}
}
+
+namespace {
+
+/**
+ * Flex entity.
+ */
+Hoa\Core\Consistency::flexEntity('Hoa\Stream\Wrapper\IWrapper\IWrapper');
+
+}
diff --git a/Wrapper/Wrapper.php b/Wrapper/Wrapper.php
index 06cd1fc..3fad3ba 100644
--- a/Wrapper/Wrapper.php
+++ b/Wrapper/Wrapper.php
@@ -138,3 +138,12 @@ class Wrapper {
}
}
+
+namespace {
+
+/**
+ * Flex entity.
+ */
+Hoa\Core\Consistency::flexEntity('Hoa\Stream\Wrapper\Wrapper');
+
+}