1 | <?php |
||
25 | class FinderProvider extends ServiceProvider |
||
26 | { |
||
27 | use ConsoleTools; |
||
28 | |||
29 | public $packageName = 'finder'; |
||
30 | const pathVendor = 'sierratecnologia/finder'; |
||
31 | |||
32 | public static $aliasProviders = [ |
||
33 | 'Finder' => \Finder\Facades\Finder::class, |
||
34 | 'FileService' => FileService::class, |
||
35 | ]; |
||
36 | |||
37 | public static $providers = [ |
||
38 | |||
39 | \Stalker\StalkerProvider::class, |
||
40 | \Casa\CasaProvider::class, |
||
41 | \Operador\OperadorProvider::class, |
||
42 | \Integrations\IntegrationsProvider::class, |
||
43 | |||
44 | /** |
||
45 | * Externos |
||
46 | */ |
||
47 | \SierraTecnologia\Crypto\CryptoProvider::class, |
||
48 | |||
49 | |||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * Rotas do Menu |
||
54 | */ |
||
55 | public static $menuItens = [ |
||
56 | 'Operações|150' => [ |
||
57 | [ |
||
58 | 'text' => 'Finder', |
||
59 | 'icon' => 'fas fa-fw fa-search', |
||
60 | 'icon_color' => "blue", |
||
61 | 'label_color' => "success", |
||
62 | 'section' => "master", |
||
63 | 'feature' => 'finder', |
||
64 | 'order' => 1800, |
||
65 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
66 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
67 | ], |
||
68 | [ |
||
69 | 'text' => 'Actions', |
||
70 | 'route' => 'rica.finder.action.actions.index', |
||
71 | 'icon' => 'fas fa-fw fa-coffee', |
||
72 | 'icon_color' => 'red', |
||
73 | 'label_color' => 'success', |
||
74 | 'section' => "master", |
||
75 | 'feature' => 'operador', |
||
76 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
77 | // 'nivel' => \Porteiro\Models\Role::$GOOD, |
||
78 | ], |
||
79 | 'Finder' => [ |
||
80 | [ |
||
81 | 'text' => 'Procurar', |
||
82 | 'icon' => 'fas fa-fw fa-search', |
||
83 | 'icon_color' => 'blue', |
||
84 | 'label_color' => 'success', |
||
85 | 'section' => "master", |
||
86 | 'feature' => 'finder', |
||
87 | 'order' => 1800, |
||
88 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
89 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
90 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
91 | ], |
||
92 | [ |
||
93 | 'text' => 'Track', |
||
94 | 'icon' => 'fas fa-fw fa-search', |
||
95 | 'icon_color' => 'blue', |
||
96 | 'label_color' => 'success', |
||
97 | 'section' => "master", |
||
98 | 'feature' => 'finder', |
||
99 | 'order' => 1800, |
||
100 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
101 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
102 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
103 | ], |
||
104 | [ |
||
105 | 'text' => 'Url', |
||
106 | 'route' => 'master.finder.url.index', |
||
107 | 'icon' => 'fas fa-fw fa-ship', |
||
108 | 'icon_color' => 'blue', |
||
109 | 'label_color' => 'success', |
||
110 | 'section' => "master", |
||
111 | 'feature' => 'finder', |
||
112 | 'order' => 1800, |
||
113 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
114 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
115 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
116 | ], |
||
117 | [ |
||
118 | 'text' => 'Computer Files', |
||
119 | 'route' => 'master.finder.files.index', |
||
120 | 'icon' => 'fas fa-fw fa-ship', |
||
121 | 'icon_color' => 'blue', |
||
122 | 'label_color' => 'success', |
||
123 | 'section' => "master", |
||
124 | 'feature' => 'finder', |
||
125 | 'order' => 1800, |
||
126 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
127 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
128 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
129 | ], |
||
130 | 'Procurar' => [ |
||
131 | [ |
||
132 | 'text' => 'Finder Home', |
||
133 | 'route' => 'rica.finder.home', |
||
134 | 'icon' => 'fas fa-fw fa-ship', |
||
135 | 'icon_color' => 'blue', |
||
136 | 'label_color' => 'success', |
||
137 | 'section' => "master", |
||
138 | 'feature' => 'finder', |
||
139 | 'order' => 1800, |
||
140 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
141 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
142 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
143 | ], |
||
144 | [ |
||
145 | 'text' => 'Finder Pessoas', |
||
146 | 'route' => 'rica.finder.persons', |
||
147 | 'icon' => 'fas fa-fw fa-group', |
||
148 | 'icon_color' => 'blue', |
||
149 | 'label_color' => 'success', |
||
150 | 'section' => "master", |
||
151 | 'feature' => 'finder', |
||
152 | 'order' => 1800, |
||
153 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
154 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
155 | // 'access' => \Porteiro\Models\Role::$ADMIN |
||
156 | ], |
||
157 | ], |
||
158 | 'Track' => [ |
||
159 | [ |
||
160 | 'text' => 'Persons', |
||
161 | 'route' => 'rica.finder.track.person', |
||
162 | 'icon' => 'fas fa-fw fa-coffee', |
||
163 | 'icon_color' => 'red', |
||
164 | 'label_color' => 'success', |
||
165 | 'section' => "master", |
||
166 | 'feature' => 'finder', |
||
167 | 'order' => 1800, |
||
168 | 'dev_status' => 2, // 0 (Desabilitado), 1 (Ativo), 2 (Em Dev) |
||
169 | 'level' => 3, // 0 (Public), 1, 2 (Admin) , 3 (Root) |
||
170 | // 'nivel' => \Porteiro\Models\Role::$GOOD, |
||
171 | ], |
||
172 | ], |
||
173 | ], |
||
174 | ], |
||
175 | ]; |
||
176 | |||
177 | /** |
||
178 | * Alias the services in the boot. |
||
179 | */ |
||
180 | public function boot() |
||
195 | |||
196 | /** |
||
197 | * Register the tool's routes. |
||
198 | * |
||
199 | * @return void |
||
200 | */ |
||
201 | protected function routes() |
||
212 | |||
213 | /** |
||
214 | * Register the services. |
||
215 | */ |
||
216 | public function register() |
||
268 | |||
269 | /** |
||
270 | * Get the services provided by the provider. |
||
271 | * |
||
272 | * @return array |
||
273 | */ |
||
274 | public function provides() |
||
280 | |||
281 | /** |
||
282 | * Register configs, migrations, etc |
||
283 | * |
||
284 | * @return void |
||
285 | */ |
||
286 | public function registerDirectories() |
||
304 | |||
305 | private function loadViews() |
||
316 | |||
317 | private function loadTranslations() |
||
329 | |||
330 | |||
331 | /** |
||
332 | * |
||
333 | */ |
||
334 | private function loadLogger() |
||
344 | } |
||
345 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.