docs: add headings

This commit is contained in:
kenjis 2022-04-04 10:43:28 +09:00
parent 5a97137c20
commit 31720766b8
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -44,6 +44,9 @@ Convenience Functions
Two functions have been provided for getting a service. These functions are always available.
service()
---------
The first is ``service()`` which returns a new instance of the requested service. The only
required parameter is the service name. This is the same as the method name within the Services
file always returns a SHARED instance of the class, so calling the function multiple times should
@ -55,6 +58,9 @@ If the creation method requires additional parameters, they can be passed after
.. literalinclude:: services/004.php
single_service()
----------------
The second function, ``single_service()`` works just like ``service()`` but returns a new instance of
the class: