LocaleSwitcherController :: switchLocale
Request
GET Parameters
None
POST Parameters
None
Uploaded Files
None
Request Attributes
| Key | Value |
|---|---|
| _access_control_attributes | null |
| _controller | "App\Controller\LocaleSwitcherController::switchLocale" |
| _firewall_context | "security.firewall.map.context.main" |
| _redirected | true |
| _route | "app_switch_locale" |
| _route_params | [ "locale" => "ru" ] |
| _security_authenticators | [] |
| _security_skipped_authenticators | [ Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#384 -supports: false -passport: null -duration: null -stub: "Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator" -authenticated: null -exception: null -authenticator: Symfony\Component\Security\Http\Authenticator\FormLoginAuthenticator {#341 …} } Symfony\Component\Security\Http\Authenticator\Debug\TraceableAuthenticator {#386 -supports: false -passport: null -duration: null -stub: "Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator" -authenticated: null -exception: null -authenticator: Symfony\Component\Security\Http\Authenticator\RememberMeAuthenticator {#387 …} } ] |
| _stopwatch_token | "0738f9" |
| locale | "ru" |
Request Headers
| Header | Value |
|---|---|
| accept | "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" |
| accept-encoding | "gzip, deflate, br" |
| accept-language | "en-US,en;q=0.9" |
| connection | "keep-alive" |
| cookie | "main_deauth_profile_token=38c8b3; sf_redirect=%7B%22token%22%3A%22fdcdea%22%2C%22route%22%3A%22app_switch_locale%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CLocaleSwitcherController%22%2C%22method%22%3A%22switchLocale%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fkinderhobby.com%5C%2Fsrc%5C%2FController%5C%2FLocaleSwitcherController.php%22%2C%22line%22%3A19%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D; PHPSESSID=111289c5fcead5af1f681fb251a77afa" |
| host | "kinderhobby.com" |
| referer | "https://kinderhobby.com/" |
| sec-fetch-dest | "document" |
| upgrade-insecure-requests | "1" |
| user-agent | "Mozilla/5.0 (X11; Linux i686; rv:114.0) Gecko/20100101 Firefox/114.0" |
| x-php-ob-level | "1" |
Request Content
Request content not available (it was retrieved as a resource).
Response
Response Headers
| Header | Value |
|---|---|
| cache-control | "no-cache, private" |
| content-type | "text/html; charset=utf-8" |
| date | "Sat, 06 Jun 2026 00:07:14 GMT" |
| location | "https://kinderhobby.com/" |
| x-debug-token | "9e2f91" |
Cookies
Request Cookies
| Key | Value |
|---|---|
| PHPSESSID | "111289c5fcead5af1f681fb251a77afa" |
| main_deauth_profile_token | "38c8b3" |
| sf_redirect | "{"token":"fdcdea","route":"app_switch_locale","method":"GET","controller":{"class":"App\\Controller\\LocaleSwitcherController","method":"switchLocale","file":"\/var\/www\/kinderhobby.com\/src\/Controller\/LocaleSwitcherController.php","line":19},"status_code":302,"status_text":"Found"}" |
Response Cookies
No response cookies
Session 2
Session Metadata
| Key | Value |
|---|---|
| Created | "Sat, 06 Jun 26 00:07:00 +0000" |
| Last used | "Sat, 06 Jun 26 00:07:13 +0000" |
| Lifetime | 0 |
Session Attributes
| Attribute | Value |
|---|---|
| _locale | "ru" |
Session Usage
2
Usages
Stateless check enabled
| Usage |
|---|
App\EventSubscriber\LocaleSubscriber:32
[
[
"file" => "/var/www/kinderhobby.com/src/EventSubscriber/LocaleSubscriber.php"
"line" => 32
"function" => "get"
"class" => "Symfony\Component\HttpFoundation\Session\Session"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/event-dispatcher/Debug/WrappedListener.php"
"line" => 115
"function" => "onKernelRequest"
"class" => "App\EventSubscriber\LocaleSubscriber"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 206
"function" => "__invoke"
"class" => "Symfony\Component\EventDispatcher\Debug\WrappedListener"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/event-dispatcher/EventDispatcher.php"
"line" => 56
"function" => "callListeners"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php"
"line" => 129
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\EventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 159
"function" => "dispatch"
"class" => "Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 76
"function" => "handleRaw"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/Kernel.php"
"line" => 193
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/autoload_runtime.php"
"line" => 32
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/public/index.php"
"line" => 5
"args" => [
"/var/www/kinderhobby.com/vendor/autoload_runtime.php"
]
"function" => "require_once"
]
]
|
App\Controller\LocaleSwitcherController:22
[
[
"file" => "/var/www/kinderhobby.com/src/Controller/LocaleSwitcherController.php"
"line" => 22
"function" => "set"
"class" => "Symfony\Component\HttpFoundation\Session\Session"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 183
"function" => "switchLocale"
"class" => "App\Controller\LocaleSwitcherController"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/HttpKernel.php"
"line" => 76
"function" => "handleRaw"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/http-kernel/Kernel.php"
"line" => 193
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\HttpKernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php"
"line" => 35
"function" => "handle"
"class" => "Symfony\Component\HttpKernel\Kernel"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/vendor/autoload_runtime.php"
"line" => 32
"function" => "run"
"class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner"
"type" => "->"
]
[
"file" => "/var/www/kinderhobby.com/public/index.php"
"line" => 5
"args" => [
"/var/www/kinderhobby.com/vendor/autoload_runtime.php"
]
"function" => "require_once"
]
]
|
Flashes
Flashes
No flash messages were created.
Server Parameters
Server Parameters
Defined in .env
| Key | Value |
|---|---|
| APP_ENV | "dev" |
| APP_SECRET | "92585ec1b5f0b7c3ec1b2e0b7320df34" |
| APP_SHARE_DIR | "var/share" |
| DATABASE_URL | "mysql://mysql:6542938416@127.0.0.1:3306/kinder-hobby" |
| DEFAULT_URI | "http://localhost" |
| GOOGLE_GEO_API_KEY | "AIzaSyAkPDs8OwOpWbJpDZPsz33ku4HBscWuIVs" |
| MAILER_DSN | "null://null" |
| MESSENGER_TRANSPORT_DSN | "doctrine://default?auto_setup=0" |
Defined as regular env variables
| Key | Value |
|---|---|
| APP_DEBUG | "1" |
| APP_PROJECT_DIR | "/var/www/kinderhobby.com" |
| APP_RUNTIME | "Symfony\Component\Runtime\SymfonyRuntime" |
| APP_RUNTIME_OPTIONS | [ "project_dir" => "/var/www/kinderhobby.com" ] |
| CONTEXT_DOCUMENT_ROOT | "/var/www/kinderhobby.com/public" |
| CONTEXT_PREFIX | "" |
| DOCUMENT_ROOT | "/var/www/kinderhobby.com/public" |
| GATEWAY_INTERFACE | "CGI/1.1" |
| HTTPS | "on" |
| HTTP_ACCEPT | "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" |
| HTTP_ACCEPT_ENCODING | "gzip, deflate, br" |
| HTTP_ACCEPT_LANGUAGE | "en-US,en;q=0.9" |
| HTTP_CONNECTION | "keep-alive" |
| HTTP_COOKIE | "main_deauth_profile_token=38c8b3; sf_redirect=%7B%22token%22%3A%22fdcdea%22%2C%22route%22%3A%22app_switch_locale%22%2C%22method%22%3A%22GET%22%2C%22controller%22%3A%7B%22class%22%3A%22App%5C%5CController%5C%5CLocaleSwitcherController%22%2C%22method%22%3A%22switchLocale%22%2C%22file%22%3A%22%5C%2Fvar%5C%2Fwww%5C%2Fkinderhobby.com%5C%2Fsrc%5C%2FController%5C%2FLocaleSwitcherController.php%22%2C%22line%22%3A19%7D%2C%22status_code%22%3A302%2C%22status_text%22%3A%22Found%22%7D; PHPSESSID=111289c5fcead5af1f681fb251a77afa" |
| HTTP_HOST | "kinderhobby.com" |
| HTTP_REFERER | "https://kinderhobby.com/" |
| HTTP_SEC_FETCH_DEST | "document" |
| HTTP_UPGRADE_INSECURE_REQUESTS | "1" |
| HTTP_USER_AGENT | "Mozilla/5.0 (X11; Linux i686; rv:114.0) Gecko/20100101 Firefox/114.0" |
| PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin" |
| PHP_SELF | "/index.php" |
| QUERY_STRING | "" |
| REDIRECT_HTTPS | "on" |
| REDIRECT_SSL_TLS_SNI | "kinderhobby.com" |
| REDIRECT_STATUS | "200" |
| REDIRECT_URL | "/locale/ru" |
| REMOTE_ADDR | "185.45.15.37" |
| REMOTE_PORT | "51999" |
| REQUEST_METHOD | "GET" |
| REQUEST_SCHEME | "https" |
| REQUEST_TIME | 1780704434 |
| REQUEST_TIME_FLOAT | 1780704434.7238 |
| REQUEST_URI | "/locale/ru" |
| SCRIPT_FILENAME | "/var/www/kinderhobby.com/public/index.php" |
| SCRIPT_NAME | "/index.php" |
| SERVER_ADDR | "188.245.123.191" |
| SERVER_ADMIN | "webmaster@localhost" |
| SERVER_NAME | "kinderhobby.com" |
| SERVER_PORT | "443" |
| SERVER_PROTOCOL | "HTTP/1.1" |
| SERVER_SIGNATURE | "<address>Apache/2.4.58 (Ubuntu) Server at kinderhobby.com Port 443</address>\n" |
| SERVER_SOFTWARE | "Apache/2.4.58 (Ubuntu)" |
| SSL_TLS_SNI | "kinderhobby.com" |
| SYMFONY_DOTENV_PATH | "/var/www/kinderhobby.com/.env" |
| SYMFONY_DOTENV_VARS | "APP_ENV,APP_SECRET,APP_SHARE_DIR,DEFAULT_URI,DATABASE_URL,MESSENGER_TRANSPORT_DSN,MAILER_DSN,GOOGLE_GEO_API_KEY" |