File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 4
4
Extending the phpdocumentor/guides
5
5
==================================
6
6
7
+ ``phpdocumentor/guides `` relies on `Symfony Dependency Injection
8
+ Container
9
+ <https://symfony.com/doc/current/components/dependency_injection.html#setting-up-the-container-with-configuration-files> `__
10
+ extensions. This means that to extend the guides, you need to define
11
+ such an extension, after what it becomes possible to make the guides CLI
12
+ aware of it by creating a ``guides.xml `` file in the directory from
13
+ which you invoke the CLI.
14
+
15
+ It should look like this::
16
+
17
+ .. code-block :: xml
18
+
19
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
20
+ <guides >
21
+ <extension class =" YourName\YourExtension\DependencyInjection\YourExtension" />
22
+ </guides >
23
+
24
+ Internally, the guides CLI defines and uses default extensions.
25
+ Once you have that set up, you can create PHP classes, define services
26
+ from it, and tag them so that they are recognized and usable by the
27
+ guides CLI.
28
+
7
29
Some ways to extend the guides:
8
30
9
31
.. toctree ::
You can’t perform that action at this time.
0 commit comments