mirror of
https://github.com/macintoshplus/doc-en.git
synced 2026-03-24 00:42:18 +01:00
yaconf/book.xml: Capitalize the first letter of the sentense + tags (#3750)
* Capitalize the first letter of the sentence + tags * Make INI-conf more readable
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<para>
|
||||
<literal>Yet Another Configurations Container</literal>
|
||||
(<acronym>Yaconf</acronym>) is a configurations container,
|
||||
it parses INI files, and store the result
|
||||
it parses <literal>INI</literal> files, and store the result
|
||||
in PHP when PHP is started, the result lives with the
|
||||
whole PHP lifecycle.
|
||||
</para>
|
||||
@@ -19,12 +19,12 @@
|
||||
Yaconf stores all configurations as
|
||||
interned string or immutable array, which means they are
|
||||
not refcounted-able, thus when you retrieving configurations
|
||||
from yaconf, it could be considered as zero-copy, very fast.
|
||||
from <acronym>Yaconf</acronym>, it could be considered as zero-copy, very fast.
|
||||
</para>
|
||||
<para>
|
||||
Yaconf supports sections and sections
|
||||
inheritance in INI files. if PHP is built as non-ZTS build,
|
||||
Yaconf also supports automatically reloading after INI files
|
||||
inheritance in <literal>INI</literal> files. If PHP is built as non-ZTS build,
|
||||
Yaconf also supports automatically reloading after <literal>INI</literal> files
|
||||
are changed.
|
||||
</para>
|
||||
<para>
|
||||
@@ -34,17 +34,21 @@
|
||||
<title>INI example</title>
|
||||
<programlisting role="ini">
|
||||
<![CDATA[
|
||||
;simple key val
|
||||
;Simple key val
|
||||
key=val
|
||||
;hash
|
||||
|
||||
;Hash
|
||||
hash.a=val
|
||||
;array
|
||||
|
||||
;Array
|
||||
arr.0=val
|
||||
;or
|
||||
arr[]=val
|
||||
;use PHP constants
|
||||
|
||||
;PHP constant
|
||||
version=PHP_VERSION
|
||||
;use environment
|
||||
|
||||
;Environment variable
|
||||
env=${PATH}
|
||||
]]>
|
||||
</programlisting>
|
||||
@@ -59,8 +63,7 @@ hash.a=val
|
||||
|
||||
;SectionB inherits SectionA
|
||||
[SectionB:SectionA]
|
||||
;override configuration key in SectionA
|
||||
key=new_val
|
||||
key=new_val ;override configuration key in SectionA
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
Reference in New Issue
Block a user