1 | <?php |
||
8 | class ClamavValidatorServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Indicates if loading of the provider is deferred. |
||
13 | * |
||
14 | * @var bool |
||
15 | */ |
||
16 | protected $defer = false; |
||
17 | |||
18 | /** |
||
19 | * The list of validator rules. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $rules = [ |
||
24 | 'clamav', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * Bootstrap the application events. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | 1 | public function boot() |
|
55 | |||
56 | /** |
||
57 | * Get the list of new rules being added to the validator. |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | 1 | public function getRules() |
|
65 | |||
66 | |||
67 | /** |
||
68 | * Add new rules to the validator. |
||
69 | */ |
||
70 | 1 | protected function addNewRules() |
|
76 | |||
77 | |||
78 | /** |
||
79 | * Extend the validator with new rules. |
||
80 | * |
||
81 | * @param string $rule |
||
82 | * @return void |
||
83 | */ |
||
84 | 1 | protected function extendValidator($rule) |
|
94 | |||
95 | |||
96 | /** |
||
97 | * Register the service provider. |
||
98 | * |
||
99 | * @return void |
||
100 | */ |
||
101 | public function register() |
||
105 | |||
106 | |||
107 | /** |
||
108 | * Get the services provided by the provider. |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function provides() |
||
116 | } |
||
117 |