1 | <?php |
||
21 | class Main |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * URL helper class instance |
||
26 | * @var \gplcart\core\helpers\Url $url |
||
27 | */ |
||
28 | protected $url; |
||
29 | |||
30 | /** |
||
31 | * Module class instance |
||
32 | * @var \gplcart\core\Module $module |
||
33 | */ |
||
34 | protected $module; |
||
35 | |||
36 | /** |
||
37 | * Session helper class instance |
||
38 | * @var \gplcart\core\helpers\Session $session |
||
39 | */ |
||
40 | protected $session; |
||
41 | |||
42 | /** |
||
43 | * Server helper class instance |
||
44 | * @var \gplcart\core\helpers\Server $server |
||
45 | */ |
||
46 | protected $server; |
||
47 | |||
48 | /** |
||
49 | * @param CoreModule $module |
||
50 | * @param UrlHelper $url |
||
51 | * @param ServerHelper $server |
||
52 | * @param SessionHelper $session |
||
53 | */ |
||
54 | public function __construct(CoreModule $module, UrlHelper $url, ServerHelper $server, |
||
62 | |||
63 | /** |
||
64 | * Implements hook "route.list" |
||
65 | * @param array $routes |
||
66 | */ |
||
67 | public function hookRouteList(array &$routes) |
||
76 | |||
77 | /** |
||
78 | * Implements hook "translation.set.before" |
||
79 | * @param string $langcode |
||
80 | */ |
||
81 | public function hookTranslationSetBefore($langcode) |
||
85 | |||
86 | /** |
||
87 | * @param $langcode |
||
88 | * @return null |
||
89 | */ |
||
90 | protected function setDetectedLanguage($langcode) |
||
124 | |||
125 | /** |
||
126 | * Language model class instance |
||
127 | * @return \gplcart\core\models\Language |
||
128 | */ |
||
129 | protected function getLanguage() |
||
133 | |||
134 | } |
||
135 |