aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 10:03:57 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-11-01 10:03:57 +0100
commit4b420cb8a6883392ddb56b472d2568fae0c4c5d7 (patch)
tree62f5e60b2e760969d431e5f11b709e347976248d /README.md
parente92e470736eec6a0b9652f6f968fcb71c36ec4f9 (diff)
downloadMime-4b420cb8a6883392ddb56b472d2568fae0c4c5d7.zip
Mime-4b420cb8a6883392ddb56b472d2568fae0c4c5d7.tar.gz
Mime-4b420cb8a6883392ddb56b472d2568fae0c4c5d7.tar.bz2
Remove mentions to from/import in documentations.
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/README.md b/README.md
index 8f80d39..ee41e69 100644
--- a/README.md
+++ b/README.md
@@ -15,11 +15,11 @@ informations.
### General informations
-All we need is static methods `Hoa\Mime::getExtensionsFromMime` to get
-extensions from a type and `Hoa\Mime::getMimeFromExtension` to get type from an
-extension:
+All we need is static methods `Hoa\Mime\Mime::getExtensionsFromMime` to get
+extensions from a type and `Hoa\Mime\Mime::getMimeFromExtension` to get type
+from an extension:
- print_r(Hoa\Mime::getExtensionsFromMime('text/html'));
+ print_r(Hoa\Mime\Mime::getExtensionsFromMime('text/html'));
/**
* Will output:
@@ -30,26 +30,26 @@ extension:
* )
*/
- var_dump(Hoa\Mime::getMimeFromExtension('webm'));
+ var_dump(Hoa\Mime\Mime::getMimeFromExtension('webm'));
/**
* Will output:
* string(10) "video/webm"
*/
-By default, `Hoa\Mime` uses the `hoa://Library/Mime/Mime.types` file as
-database. We can change this behavior by calling the `Hoa\Mime::compute` before
-any computations:
+By default, `Hoa\Mime\Mime` uses the `hoa://Library/Mime/Mime.types` file as
+database. We can change this behavior by calling the `Hoa\Mime\Mime::compute`
+before any computations:
- Hoa\Mime::compute('/etc/mime.types');
+ Hoa\Mime\Mime::compute('/etc/mime.types');
### Stream-related informations
-By instanciating the `Hoa\Mime` class with a stream, we are able to get some
-informations about the stream, such as its extension, others extensions, type,
-etc. Thus:
+By instanciating the `Hoa\Mime\Mime` class with a stream, we are able to get
+some informations about the stream, such as its extension, others extensions,
+type, etc. Thus:
- $type = new Hoa\Mime(new Hoa\File\Read('index.html'));
+ $type = new Hoa\Mime\Mime(new Hoa\File\Read('index.html'));
var_dump(
$type->getExtension(),