1 | <?php namespace Sunspikes\ClamavValidator; |
||
5 | class ClamavValidatorServiceProvider extends ServiceProvider |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * Indicates if loading of the provider is deferred. |
||
10 | * |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $defer = false; |
||
14 | |||
15 | /** |
||
16 | * The list of validator rules. |
||
17 | * |
||
18 | * @var bool |
||
19 | */ |
||
20 | protected $rules = [ |
||
21 | 'clamav', |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * Bootstrap the application events. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 1 | public function boot() |
|
45 | |||
46 | /** |
||
47 | * Get the list of new rules being added to the validator. |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 1 | public function getRules() |
|
55 | |||
56 | |||
57 | /** |
||
58 | * Add new rules to the validator. |
||
59 | */ |
||
60 | 1 | protected function addNewRules() |
|
66 | |||
67 | |||
68 | /** |
||
69 | * Extend the validator with new rules. |
||
70 | * |
||
71 | * @param string $rule |
||
72 | * @return void |
||
73 | */ |
||
74 | 1 | protected function extendValidator($rule) |
|
81 | |||
82 | |||
83 | /** |
||
84 | * Register the service provider. |
||
85 | * |
||
86 | * @return void |
||
87 | */ |
||
88 | public function register() |
||
91 | |||
92 | |||
93 | /** |
||
94 | * Get the services provided by the provider. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | 1 | public function provides() |
|
102 | } |
||
103 |