1 | <?php |
||
9 | class MonologHandlerFactory |
||
10 | { |
||
11 | /** |
||
12 | * Returns an instance of \Monolog\Handler\HandlerInterface |
||
13 | * @param string $name Then name of the handler you want to create |
||
14 | * @param array $config An array of config values to use |
||
15 | * @return \Monolog\Handler\HandlerInterface |
||
16 | */ |
||
17 | 21 | public static function create($name, array $config = [], $title = null){ |
|
20 | |||
21 | /** |
||
22 | * Returns a PushoverHandler |
||
23 | * @param array $config An array of config values to use |
||
24 | * @param string $title The title/subject to use |
||
25 | * @return \Monolog\Handler\PushoverHandler |
||
26 | */ |
||
27 | 9 | protected static function pushover(array $config = [], $title = null){ |
|
55 | |||
56 | /** |
||
57 | * Returns a SlackHandler |
||
58 | * @param array $config An array of config values to use |
||
59 | * @param string $title The title/subject to use |
||
60 | * @return \Monolog\Handler\SlackHandler |
||
61 | */ |
||
62 | 9 | protected static function slack(array $config = [], $title = null){ |
|
86 | |||
87 | /** |
||
88 | * Returns a HipChatHandler |
||
89 | * @param array $config An array of config values to use |
||
90 | * @param string $title The title/subject to use |
||
91 | * @return \Monolog\Handler\HipChatHandler |
||
92 | */ |
||
93 | 9 | protected static function hipchat(array $config = [], $title = null){ |
|
119 | |||
120 | /** |
||
121 | * Creates Mail Monolog Handler |
||
122 | * @param array $config An array of config values to use |
||
123 | * @param string $title The title/subject to use |
||
124 | * @return \Monolog\Handler\MailHandler |
||
125 | */ |
||
126 | 6 | protected static function mail(array $config = [], $title = null) |
|
134 | |||
135 | /** |
||
136 | * Creates Mail Monolog Handler |
||
137 | * @param array $config An array of config values to use |
||
138 | * @param string $title The title/subject to use |
||
139 | * @return \Monolog\Handler\SwiftMailerHandler |
||
140 | */ |
||
141 | 3 | protected static function swiftMail(array $config, $title = null) |
|
159 | |||
160 | /** |
||
161 | * Creates Mail Monolog Handler |
||
162 | * @param array $config An array of config values to use |
||
163 | * @param string $title The title/subject to use |
||
164 | * @return \Monolog\Handler\NativeMailerHandler |
||
165 | */ |
||
166 | 3 | protected static function nativeMail(array $config, $title = null) |
|
187 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.