1 | <?php namespace RobbieP\ZbarQrdecoder; |
||
6 | class ZbarQrdecoderServiceProvider extends ServiceProvider { |
||
7 | |||
8 | /** |
||
9 | * Indicates if loading of the provider is deferred. |
||
10 | * |
||
11 | * @var bool |
||
12 | */ |
||
13 | protected $defer = false; |
||
14 | |||
15 | /** |
||
16 | * Actual provider |
||
17 | * |
||
18 | * @var \Illuminate\Support\ServiceProvider |
||
19 | */ |
||
20 | protected $provider; |
||
21 | |||
22 | /** |
||
23 | * Create a new service provider instance. |
||
24 | * |
||
25 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
26 | * @return void |
||
|
|||
27 | */ |
||
28 | public function __construct($app) |
||
34 | |||
35 | /** |
||
36 | * Bootstrap the application events. |
||
37 | * |
||
38 | * @return void |
||
39 | */ |
||
40 | public function boot() |
||
44 | |||
45 | /** |
||
46 | * Register the service provider. |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | public function register() |
||
54 | |||
55 | /** |
||
56 | * Get the services provided by the provider. |
||
57 | * |
||
58 | * @return array |
||
59 | */ |
||
60 | public function provides() |
||
64 | |||
65 | /** |
||
66 | * Return ServiceProvider according to Laravel version |
||
67 | * |
||
68 | * @return \Illuminate\Support\ServiceProvider |
||
69 | */ |
||
70 | private function getProvider() |
||
80 | |||
81 | } |
||
82 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.