1 | <?php namespace Arcanedev\NoCaptcha; |
||
11 | class NoCaptchaServiceProvider extends ServiceProvider |
||
12 | { |
||
13 | /* ------------------------------------------------------------------------------------------------ |
||
14 | | Properties |
||
15 | | ------------------------------------------------------------------------------------------------ |
||
16 | */ |
||
17 | /** |
||
18 | * Package name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $package = 'no-captcha'; |
||
23 | |||
24 | /* ------------------------------------------------------------------------------------------------ |
||
25 | | Getters & Setters |
||
26 | | ------------------------------------------------------------------------------------------------ |
||
27 | */ |
||
28 | /** |
||
29 | * Get the base path of the package. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | 84 | public function getBasePath() |
|
37 | |||
38 | /* ------------------------------------------------------------------------------------------------ |
||
39 | | Main Functions |
||
40 | | ------------------------------------------------------------------------------------------------ |
||
41 | */ |
||
42 | /** |
||
43 | * Register the service provider. |
||
44 | */ |
||
45 | 84 | public function register() |
|
50 | |||
51 | /** |
||
52 | * Bootstrap the application events. |
||
53 | */ |
||
54 | 84 | public function boot() |
|
62 | |||
63 | /** |
||
64 | * Get the services provided by the provider. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | 12 | public function provides() |
|
75 | |||
76 | /* ------------------------------------------------------------------------------------------------ |
||
77 | | Other Functions |
||
78 | | ------------------------------------------------------------------------------------------------ |
||
79 | */ |
||
80 | /** |
||
81 | * Register NoCaptcha service. |
||
82 | */ |
||
83 | 84 | private function registerNoCaptcha() |
|
99 | |||
100 | /** |
||
101 | * Register Validator rules. |
||
102 | * |
||
103 | * @param \Illuminate\Foundation\Application $app |
||
104 | */ |
||
105 | 84 | private function registerValidatorRules($app) |
|
114 | |||
115 | /** |
||
116 | * Register Form Macros. |
||
117 | * |
||
118 | * @param \Illuminate\Foundation\Application $app |
||
119 | */ |
||
120 | 84 | private function registerFormMacros($app) |
|
128 | } |
||
129 |