BlogController :: postShow
Request
GET Parameters
No GET parameters
POST Parameters
No POST parameters
Uploaded Files
No files were uploaded
Request Attributes
Key | Value |
---|---|
_controller | "App\Controller\BlogController::postShow" |
_firewall_context | "security.firewall.map.context.main" |
_locale | "ar" |
_remove_csp_headers | true |
_route | "blog_post" |
_route_params | [ "_locale" => "ar" "slug" => "hello-world" ] |
_security_firewall_run | "_security_main" |
_stopwatch_token | "15abfa" |
post | App\Entity\Post {#517 -id: 31 -title: "hello world" -slug: "hello-world" -summary: "asdasd" -content: "asdasdasdasdads" -publishedAt: DateTime @1647282074 {#515 : 2022-03-14 18:21:14.0 UTC (+00:00) } -author: Proxies\__CG__\App\Entity\User {#543 …} -comments: Doctrine\ORM\PersistentCollection {#563 …} -tags: Doctrine\ORM\PersistentCollection {#583 …} } |
slug | "hello-world" |
Request Headers
Header | Value |
---|---|
accept | "*/*" |
accept-encoding | "gzip, br, zstd, deflate" |
content-length | "" |
content-type | "" |
host | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
user-agent | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
x-forwarded-for | "18.223.158.29" |
x-forwarded-host | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
x-forwarded-port | "443" |
x-forwarded-proto | "https" |
x-forwarded-scheme | "https" |
x-php-ob-level | "1" |
x-real-ip | "18.223.158.29" |
x-request-id | "179524cca221b1cda20977143c7efa0f" |
x-scheme | "https" |
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, 11 Jan 2025 02:09:36 GMT" |
x-debug-exception | "An%20exception%20has%20been%20thrown%20during%20the%20rendering%20of%20a%20template%20%28%22Unable%20to%20format%20message%20%28error%20%23-1%29%3A%20Message%20pattern%20is%20invalid.%22%29." |
x-debug-exception-file | "%2Fapp%2Ftemplates%2Fblog%2Fpost_show.html.twig:37" |
x-debug-token | "eaa738" |
x-debug-token-link | "https://nginx.main.demo-ongoing-symfony.de3.amazee.io/_profiler/6e378d" |
x-previous-debug-token | "6e378d" |
x-robots-tag | "noindex" |
Cookies
Request Cookies
No request cookies
Response Cookies
No response cookies
Session 1
Session Metadata
No session metadata
Session Attributes
No session attributes
Session Usage
1
Usages
Stateless check enabled
Usage |
---|
Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage:44
[ [ "file" => "/app/vendor/symfony/security-core/Authentication/Token/Storage/UsageTrackingTokenStorage.php" "line" => 44 "function" => "getMetadataBag" "class" => "Symfony\Component\HttpFoundation\Session\Session" "type" => "->" ] [ "file" => "/app/vendor/symfony/twig-bridge/AppVariable.php" "line" => 78 "function" => "getToken" "class" => "Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Extension/CoreExtension.php" "line" => 1544 "function" => "getUser" "class" => "Symfony\Bridge\Twig\AppVariable" "type" => "->" ] [ "file" => "/app/var/cache/dev/twig/cf/cf6ad2e77c931e5d07db17e851b124f0ea94725ae48c030dcf01fc1577f2c743.php" "line" => 261 "function" => "twig_get_attribute" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 171 "function" => "block_header" "class" => "__TwigTemplate_f6aab8cdb46530856c21ea542d64d5ed063d69afabcbdea95cac804a83801512" "type" => "->" ] [ "file" => "/app/var/cache/dev/twig/cf/cf6ad2e77c931e5d07db17e851b124f0ea94725ae48c030dcf01fc1577f2c743.php" "line" => 94 "function" => "displayBlock" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 394 "function" => "doDisplay" "class" => "__TwigTemplate_f6aab8cdb46530856c21ea542d64d5ed063d69afabcbdea95cac804a83801512" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 367 "function" => "displayWithErrorHandling" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/var/cache/dev/twig/fd/fd432deb61f60bf629f76bc731421b27408e0b6b87feacb58ad12286bd991617.php" "line" => 50 "function" => "display" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 394 "function" => "doDisplay" "class" => "__TwigTemplate_925da054963f57039d12834368ca1e6b964265eb25605cd076c177f436cb2408" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 367 "function" => "displayWithErrorHandling" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Template.php" "line" => 379 "function" => "display" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/TemplateWrapper.php" "line" => 40 "function" => "render" "class" => "Twig\Template" "type" => "->" ] [ "file" => "/app/vendor/twig/twig/src/Environment.php" "line" => 277 "function" => "render" "class" => "Twig\TemplateWrapper" "type" => "->" ] [ "file" => "/app/vendor/symfony/framework-bundle/Controller/AbstractController.php" "line" => 222 "function" => "render" "class" => "Twig\Environment" "type" => "->" ] [ "file" => "/app/vendor/symfony/framework-bundle/Controller/AbstractController.php" "line" => 230 "function" => "renderView" "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController" "type" => "->" ] [ "file" => "/app/src/Controller/BlogController.php" "line" => 92 "function" => "render" "class" => "Symfony\Bundle\FrameworkBundle\Controller\AbstractController" "type" => "->" ] [ "file" => "/app/vendor/symfony/http-kernel/HttpKernel.php" "line" => 152 "function" => "postShow" "class" => "App\Controller\BlogController" "type" => "->" ] [ "file" => "/app/vendor/symfony/http-kernel/HttpKernel.php" "line" => 74 "function" => "handleRaw" "class" => "Symfony\Component\HttpKernel\HttpKernel" "type" => "->" ] [ "file" => "/app/vendor/symfony/http-kernel/Kernel.php" "line" => 202 "function" => "handle" "class" => "Symfony\Component\HttpKernel\HttpKernel" "type" => "->" ] [ "file" => "/app/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php" "line" => 35 "function" => "handle" "class" => "Symfony\Component\HttpKernel\Kernel" "type" => "->" ] [ "file" => "/app/vendor/autoload_runtime.php" "line" => 29 "function" => "run" "class" => "Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner" "type" => "->" ] [ "file" => "/app/public/index.php" "line" => 5 "args" => [ "/app/vendor/autoload_runtime.php" ] "function" => "require_once" ] ] |
Flashes
Flashes
No flash messages were created.
Server Parameters
Server Parameters
Defined in .env
Key | Value |
---|---|
(no data) |
Defined as regular env variables
Key | Value |
---|---|
APP_DEBUG | "1" |
APP_ENV | "dev" |
APP_SECRET | "2ca64f8d83b9e89f5f19d672841d6bb8" |
BASH_ENV | "/home/.bashrc" |
CONTENT_LENGTH | "" |
CONTENT_TYPE | "" |
DATABASE_URL | "mysql://demo-on_SZ9WG:tiAOa1UTQH000NJ7a1G0zgKU@mariadb-9e4e4cc3-63f7-4658-97f4-e9edb49a8f98:3306/demo-ongoing-symfony-main_fjUMY" |
DOCUMENT_ROOT | "/app/public" |
DOCUMENT_URI | "/index.php" |
ENV | "/home/.bashrc" |
FCGI_ROLE | "RESPONDER" |
GATEWAY_INTERFACE | "CGI/1.1" |
GPG_KEYS | "528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD" |
HOME | "/home" |
HOSTNAME | "nginx-8c4859b7b-pjxmj" |
HTTPS | "on" |
HTTP_ACCEPT | "*/*" |
HTTP_ACCEPT_ENCODING | "gzip, br, zstd, deflate" |
HTTP_HOST | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
HTTP_USER_AGENT | "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" |
HTTP_X_FORWARDED_FOR | "18.223.158.29" |
HTTP_X_FORWARDED_HOST | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
HTTP_X_FORWARDED_PORT | "443" |
HTTP_X_FORWARDED_PROTO | "https" |
HTTP_X_FORWARDED_SCHEME | "https" |
HTTP_X_REAL_IP | "18.223.158.29" |
HTTP_X_REQUEST_ID | "179524cca221b1cda20977143c7efa0f" |
HTTP_X_SCHEME | "https" |
KUBERNETES_PORT | "tcp://172.20.0.1:443" |
KUBERNETES_PORT_443_TCP | "tcp://172.20.0.1:443" |
KUBERNETES_PORT_443_TCP_ADDR | "172.20.0.1" |
KUBERNETES_PORT_443_TCP_PORT | "443" |
KUBERNETES_PORT_443_TCP_PROTO | "tcp" |
KUBERNETES_SERVICE_HOST | "172.20.0.1" |
KUBERNETES_SERVICE_PORT | "443" |
KUBERNETES_SERVICE_PORT_HTTPS | "443" |
LAGOON | "php" |
LAGOON_AUTOGENERATED_ROUTES | "https://nginx.main.demo-ongoing-symfony.de3.amazee.io" |
LAGOON_DOMAIN | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
LAGOON_ENVIRONMENT | "main" |
LAGOON_ENVIRONMENT_TYPE | "production" |
LAGOON_GIT_BRANCH | "main" |
LAGOON_GIT_SAFE_BRANCH | "main" |
LAGOON_GIT_SHA | "0" |
LAGOON_KUBERNETES | "de3.amazee.io" |
LAGOON_PROJECT | "demo-ongoing-symfony" |
LAGOON_ROUTE | "https://nginx.main.demo-ongoing-symfony.de3.amazee.io" |
LAGOON_ROUTES | "https://nginx.main.demo-ongoing-symfony.de3.amazee.io" |
LAGOON_VERSION | "22.2.0" |
MARIADB_DATABASE | "demo-ongoing-symfony-main_fjUMY" |
MARIADB_HOST | "mariadb-9e4e4cc3-63f7-4658-97f4-e9edb49a8f98" |
MARIADB_PASSWORD | "tiAOa1UTQH000NJ7a1G0zgKU" |
MARIADB_PORT | "3306" |
MARIADB_READREPLICA_HOSTS | "readreplica-mariadb-78f5383d-1803-447d-8f9e-5b4ab1c64ba5" |
MARIADB_USERNAME | "demo-on_SZ9WG" |
NGINX_FASTCGI_PASS | "127.0.0.1" |
PATH | "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
PHPIZE_DEPS | "autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c" |
PHP_ASC_URL | "https://www.php.net/distributions/php-8.1.3.tar.xz.asc" |
PHP_CFLAGS | "-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
PHP_CPPFLAGS | "-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
PHP_ERROR_REPORTING | "E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE" |
PHP_INI_DIR | "/usr/local/etc/php" |
PHP_LDFLAGS | "-Wl,-O1 -pie" |
PHP_SELF | "/index.php" |
PHP_SHA256 | "5d65a11071b47669c17452fb336c290b67c101efb745c1dbe7525b5caf546ec6" |
PHP_URL | "https://www.php.net/distributions/php-8.1.3.tar.xz" |
PHP_VERSION | "8.1.3" |
PWD | "/app" |
QUERY_STRING | "" |
REDIRECT_STATUS | "200" |
REMOTE_ADDR | "18.223.158.29" |
REMOTE_PORT | "" |
REQUEST_METHOD | "GET" |
REQUEST_SCHEME | "http" |
REQUEST_TIME | 1736561376 |
REQUEST_TIME_FLOAT | 1736561376.5437 |
REQUEST_URI | "/ar/blog/posts/hello-world" |
SCRIPT_FILENAME | "/app/public/index.php" |
SCRIPT_NAME | "/index.php" |
SERVER_ADDR | "10.200.44.26" |
SERVER_NAME | "nginx.main.demo-ongoing-symfony.de3.amazee.io" |
SERVER_PORT | "443" |
SERVER_PROTOCOL | "HTTP/1.1" |
SERVER_SOFTWARE | "nginx/1.19.9" |
SHLVL | "1" |
TMP | "/tmp" |
TMPDIR | "/tmp" |
TRUSTED_HOSTS | ".*" |
TRUSTED_PROXIES | "127.0.0.1,10.99.99.1,REMOTE_ADDR" |
USER | "user" |
WEBROOT | "public" |
Sub Requests 1
ErrorController (token = 6e378d)
Key | Value |
---|---|
_controller | "error_controller" |
_stopwatch_token | "7cab3c" |
exception | Twig\Error\RuntimeError {#797 #message: "An exception has been thrown during the rendering of a template ("Unable to format message (error #-1): Message pattern is invalid.")." #code: 0 #file: "/app/templates/blog/post_show.html.twig" #line: 37 -previous: Symfony\Component\Translation\Exception\InvalidArgumentException {#999 …} -lineno: 37 -name: "blog/post_show.html.twig" -rawMessage: "An exception has been thrown during the rendering of a template ("Unable to format message (error #-1): Message pattern is invalid.")." -sourcePath: "/app/templates/blog/post_show.html.twig" -sourceCode: """ {% extends 'base.html.twig' %}\n \n {% block body_id 'blog_post_show' %}\n \n {% block main %}\n <h1>{{ post.title }}</h1>\n \n <p class="post-metadata">\n <span class="metadata"><i class="fa fa-calendar"></i> {{ post.publishedAt|format_datetime('long', 'medium', '', 'UTC') }}</span>\n <span class="metadata"><i class="fa fa-user"></i> {{ post.author.fullName }}</span>\n </p>\n \n {{ post.content|markdown_to_html|sanitize_html }}\n \n {{ include('blog/_post_tags.html.twig') }}\n \n <div id="post-add-comment" class="well">\n {# The 'IS_AUTHENTICATED_FULLY' role ensures that the user has entered\n their credentials (login + password) during this session. If they\n are automatically logged via the 'Remember Me' functionality, they won't\n be able to add a comment.\n See https://symfony.com/doc/current/security/remember_me.html#forcing-the-user-to-re-authenticate-before-accessing-certain-resources\n #}\n {% if is_granted('IS_AUTHENTICATED_FULLY') %}\n {{ render(controller('App\\Controller\\BlogController::commentForm', {'id': post.id})) }}\n {% else %}\n <p>\n <a class="btn btn-success" href="{{ path('security_login', {'redirect_to': app.request.pathInfo}) }}">\n <i class="fa fa-sign-in" aria-hidden="true"></i> {{ 'action.sign_in'|trans }}\n </a>\n {{ 'post.to_publish_a_comment'|trans }}\n </p>\n {% endif %}\n </div>\n \n <h3>\n <i class="fa fa-comments" aria-hidden="true"></i> {{ 'post.num_comments'|trans({ 'count': post.comments|length }) }}\n </h3>\n \n {% for comment in post.comments %}\n <div class="row post-comment">\n <a name="comment_{{ comment.id }}"></a>\n <h4 class="col-sm-3">\n <strong>{{ comment.author.fullName }}</strong> {{ 'post.commented_on'|trans }}\n {# it's not mandatory to set the timezone in localizeddate(). This is done to\n avoid errors when the 'intl' PHP extension is not available and the application\n is forced to use the limited "intl polyfill", which only supports UTC and GMT #}\n <strong>{{ comment.publishedAt|format_datetime('medium', 'short', '', 'UTC') }}</strong>\n </h4>\n <div class="col-sm-9">\n {{ comment.content|markdown_to_html|sanitize_html }}\n </div>\n </div>\n {% else %}\n <div class="post-comment">\n <p>{{ 'post.no_comments'|trans }}</p>\n </div>\n {% endfor %}\n {% endblock %}\n \n {% block sidebar %}\n {% if is_granted('edit', post) %}\n <div class="section">\n <a class="btn btn-lg btn-block btn-success" href="{{ path('admin_post_edit', {id: post.id}) }}">\n <i class="fa fa-edit" aria-hidden="true"></i> {{ 'action.edit_post'|trans }}\n </a>\n </div>\n {% endif %}\n \n {# the parent() function includes the contents defined by the parent template\n ('base.html.twig') for this block ('sidebar'). This is a very convenient way\n to share common contents in different templates #}\n {{ parent() }}\n \n {{ show_source_code(_self) }}\n {{ include('blog/_rss.html.twig') }}\n {% endblock %}\n """ : { { Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) … › |
logger | Symfony\Bridge\Monolog\Logger {#63 …6} |