|
1
|
|
|
<?php namespace Arcanesoft\Tracker\Providers; |
|
2
|
|
|
|
|
3
|
|
|
use Arcanedev\Support\Providers\ViewComposerServiceProvider as ServiceProvider; |
|
4
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\AuthenticatedVisitorsRatioComposer; |
|
5
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\BrowsersRatioComposer; |
|
6
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\CountriesListComposer; |
|
7
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\DevicesRatioComposer; |
|
8
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\LanguagesListComposer; |
|
9
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\LatestThirtyDaysVisitsAndVisitorsComposer; |
|
10
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\OperatingSystemRationComposer; |
|
11
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\ReferersListComposer; |
|
12
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\TotalPageViewsBoxComposer; |
|
13
|
|
|
use Arcanesoft\Tracker\ViewComposers\Dashboard\TotalUniqueUsersBoxComposer; |
|
14
|
|
|
|
|
15
|
|
|
/** |
|
16
|
|
|
* Class ComposerServiceProvider |
|
17
|
|
|
* |
|
18
|
|
|
* @package Arcanesoft\Tracker\Providers |
|
19
|
|
|
* @author ARCANEDEV <[email protected]> |
|
20
|
|
|
*/ |
|
21
|
|
|
class ComposerServiceProvider extends ServiceProvider |
|
22
|
|
|
{ |
|
23
|
|
|
/* ------------------------------------------------------------------------------------------------ |
|
24
|
|
|
| Properties |
|
25
|
|
|
| ------------------------------------------------------------------------------------------------ |
|
26
|
|
|
*/ |
|
27
|
|
|
/** |
|
28
|
|
|
* Register the composer classes. |
|
29
|
|
|
* |
|
30
|
|
|
* @var array |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $composerClasses = [ |
|
33
|
|
|
// Dashboard view composers |
|
34
|
|
|
TotalUniqueUsersBoxComposer::VIEW => TotalUniqueUsersBoxComposer::class, |
|
35
|
|
|
TotalPageViewsBoxComposer::VIEW => TotalPageViewsBoxComposer::class, |
|
36
|
|
|
LatestThirtyDaysVisitsAndVisitorsComposer::VIEW => LatestThirtyDaysVisitsAndVisitorsComposer::class, |
|
37
|
|
|
AuthenticatedVisitorsRatioComposer::VIEW => AuthenticatedVisitorsRatioComposer::class, |
|
38
|
|
|
DevicesRatioComposer::VIEW => DevicesRatioComposer::class, |
|
39
|
|
|
BrowsersRatioComposer::VIEW => BrowsersRatioComposer::class, |
|
40
|
|
|
OperatingSystemRationComposer::VIEW => OperatingSystemRationComposer::class, |
|
41
|
|
|
LanguagesListComposer::VIEW => LanguagesListComposer::class, |
|
42
|
|
|
CountriesListComposer::VIEW => CountriesListComposer::class, |
|
43
|
|
|
ReferersListComposer::VIEW => ReferersListComposer::class, |
|
44
|
|
|
]; |
|
45
|
|
|
} |
|
46
|
|
|
|