26f41f792a7a3326f55f398320f501f70173ebb1
[GitHub/WoltLab/woltlab.github.io.git] / docs / package / pip / core-object.md
1 # Core Object Package Installation Plugin
2
3 Registers `wcf\system\SingletonFactory` objects to be accessible in templates.
4
5 ## Components
6
7 Each item is described as a `<coreobject>` element with the mandatory element `objectname`.
8
9 ### `<objectname>`
10
11 The fully qualified class name of the class.
12
13 ## Example
14
15 {jinja{ codebox(
16 "xml",
17 "package/pip/coreObject.xml",
18 "coreObject.xml"
19 ) }}
20
21 This object can be accessed in templates via `$__wcf->getExampleHandler()` (in general: the method name begins with `get` and ends with the unqualified class name).