Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

language sync with EN #1826

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion language/oop5/autoload.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: ce3a2d381693ccbc10cc4a808c3eb853f3c85c9e Maintainer: jpauli Status: ready -->
<!-- EN-Revision: 7befd9af043386158ef9080723eb18e03f0625c7 Maintainer: jpauli Status: ready -->
<!-- Reviewed: no -->
<sect1 xml:id="language.oop5.autoload" xmlns="http://docbook.org/ns/docbook">
<title>Auto-chargement de classes</title>
Expand Down Expand Up @@ -82,6 +82,26 @@ string(5) "ITest"

Fatal error: Interface 'ITest' not found in ...
*/
?>
]]>
</programlisting>
</example>
<example>
<title>Utilisation de l'autoloader de Composer</title>
<simpara>
&link.composer; génère un fichier <literal>vendor/autoload.php</literal>
configuré pour charger automatiquement les packages gérés par Composer.
En incluant ce fichier, ces packages peuvent être utilisés sans travail
supplémentaire.
</simpara>
<programlisting role="php">
<![CDATA[
<?php
require __DIR__ . '/vendor/autoload.php';

$uuid = new Ramsey\Uuid\Uuid::uuid7();

echo "Nouvel UUID généré -> ", $uuid->toString(), "\n";
?>
]]>
</programlisting>
Expand Down