Files
doc-fr/reference/yaconf/book.xml
2021-06-13 23:56:49 +01:00

98 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: girgias Status: ready -->
<!-- Reviewed: no -->
<book xml:id="book.yaconf" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="pecl" ?>
<title>Yaconf</title>
<titleabbrev>Yaconf</titleabbrev>
<preface xml:id="intro.yaconf">
&reftitle.intro;
<para>
<literal>Yet Another Configurations Container</literal>
(<acronym>Yaconf</acronym>) est un conteneur de configuration,
il analyse les fichiers INI, enregistre le résultat en
PHP quand PHP est démarré, le résultat vit tout
le long du cycle de vie de PHP.
</para>
<para>
Yaconf enregistre toutes les configurations en tant que
chaîne interné ou un tableau immuable, ce qui signifie qu'ils ne sont pas
comptabilisé dans les références, ainsi quand vous récupérez les
configurations depuis yaconf, ceci peut être considéré sans copie,
très rapide.
</para>
<para>
Yaconf supporte les sections et l'héritage des sections
dans les fichiers INI. Si PHP est compilé en tant que non-ZTS,
Yaconf supporte aussi le rechargement automatique après que les
fichiers INI sont modifiés.
</para>
<para>
Yaconf nécessite PHP 7.0 ou supérieur.
</para>
<example>
<title>Exemple INI</title>
<programlisting role="ini">
<![CDATA[
;simple key val
key=val
;hash
hash.a=val
;array
arr.0=val
;or
arr[]=val
;use PHP constants
version=PHP_VERION
;use environment
env=${PATH}
]]>
</programlisting>
</example>
<example>
<title>Exemple avec les sections INI</title>
<programlisting role="ini">
<![CDATA[
[SectionA]
key=val
hash.a=val
;SectionB inherits SectionA
[SectionB:SectionA]
;override configuration key in SectionA
key=new_val
]]>
</programlisting>
</example>
</preface>
&reference.yaconf.setup;
&reference.yaconf.constants;
&reference.yaconf.yaconf;
</book>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->