-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mddoc.xml.dist
33 lines (30 loc) · 1.31 KB
/
.mddoc.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<mddoc>
<docpage target="README.md">
<autoloader type="psr4" root="src" namespace="Corpus\Di"/>
<autoloader type="psr4" root="vendor/psr/container/src" namespace="Psr\Container"/>
<section title="Corpus Di">
<badge-poser type="version"/>
<badge-poser type="license"/>
<badge-github-action name="CorpusPHP/Di" workflow-file="ci.yml"/>
<badge-coveralls name="github/CorpusPHP/Di" />
<text>A Simple PSR-11 Complaint Di Container</text>
<section title="Requirements">
<composer-requires/>
</section>
<section title="Installing">
<composer-install/>
</section>
<section title="Usage">
<text>Getting started with Di the three most important methods follow.
- The `set` method is used to set either the item to return or a lambda to lazily construct it, optionally taking constructor arguments.
- The `get` method is used to retrieve values with memoization after the initial lazy loading.
- The `getNew` is used to invoke the lazy loading creation lambda every call, optionally taking an array of constructor arguments as a second parameter.</text>
<source name="example/example.php" lang="php"/>
</section>
<section title="Documentation">
<file name="src/Di.php"/>
<file name="src/Exceptions/UndefinedIdentifierException.php"/>
</section>
</section>
</docpage>
</mddoc>