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