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() |
|
46 | |||
47 | /** |
||
48 | * Get the list of new rules being added to the validator. |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | 1 | public function getRules() |
|
56 | |||
57 | |||
58 | /** |
||
59 | * Add new rules to the validator. |
||
60 | */ |
||
61 | 1 | protected function addNewRules() |
|
67 | |||
68 | |||
69 | /** |
||
70 | * Extend the validator with new rules. |
||
71 | * |
||
72 | * @param string $rule |
||
73 | * @return void |
||
74 | */ |
||
75 | 1 | protected function extendValidator($rule) |
|
82 | |||
83 | |||
84 | /** |
||
85 | * Register the service provider. |
||
86 | * |
||
87 | * @return void |
||
88 | */ |
||
89 | public function register() |
||
92 | |||
93 | |||
94 | /** |
||
95 | * Get the services provided by the provider. |
||
96 | * |
||
97 | * @return array |
||
98 | */ |
||
99 | 1 | public function provides() |
|
103 | } |
||
104 |