There was an error while loading. Please reload this page.
1 parent 0ec9e91 commit fc39b73Copy full SHA for fc39b73
1 file changed
src/Endpoint/BaseEndpoint.php
@@ -46,6 +46,14 @@ public function __toString(): string
46
47
public function startup(): void
48
{
49
+ if (PHP_SAPI !== 'cli' && class_exists('\Baraja\Localization\Localization') === true) {
50
+ /** @var \Nette\Http\Request $httpRequest */
51
+ $httpRequest = $this->container->getByType(\Nette\Http\Request::class);
52
+ /** @var \Baraja\Localization\Localization $localization */
53
+ $localization = $this->container->getByType(\Baraja\Localization\Localization::class);
54
+ $localization->processHttpRequest($httpRequest);
55
+ }
56
+
57
$this->startupCheck = true;
58
}
59
0 commit comments