forked from ApiGen/ApiGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apigen.plugins.neon.example
29 lines (25 loc) · 1.39 KB
/
apigen.plugins.neon.example
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
# To prevent conflicts between internal services and user plusings, you should
# always prefix your plugin name with "plugin.". Use bare service names only when
# you really want to override an internal service with your own one.
# No matter if you override an internal service or create a new one, its main class
# (see below) has to implement the \ApiGen\IPlugin interface.
plugin.name:
# ApiGen will put this path into its plugin autoloading mechanism. Your plugin
# does not have to follow any classname -> filename guidelines to be accessible.
# The path can be relative to the config file directory.
location: /directory/with/the/plugin/source/files
# The main class of the plugin that will be called by ApiGen.
# If the class has some dependencies (configuration, ...), they have to be defined in
# its constructor. Such dependencies will be autowired.
class: Namespace\ClassName
# You can set hooks to various events. You have to define a callback method placed
# in the main class that will be called when the event occurs. You also have to define
# the event origin service name and the event name in the scope of this service.
events:
- methodName@originName::eventName
# Plugin options. This whole part of the config file will be passed to the setOptions()
# method (defined by the IPlugin interface) as an array.
options:
option1: value1
option2: [value21, value22]
option3: true