You get a bonus - 1 coin for daily activity. Now you have 1 coin

How to disable debug mode in the Symfony framework

Practice




How to disable debug mode in the Symfony framework

all settings are located in Symfony's configuration files
to switch from developer mode to a mode without debugging, you can either change the settings in the configuration file
/app/config/

imports:
- { resource: config.yml }

framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
profiler: { only_exceptions: false }

web_profiler:
toolbar: true
intercept_redirects: false

monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
firephp:
type: firephp
level: info

assetic:
use_controller: true

#swiftmailer:
# delivery_address: me@example.com



or in the file /web/.htaccess

change app_dev.php to app.php

RewriteEngine On

#
# RewriteBase /
#


RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app_dev.php [QSA,L]

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Running server side scripts using PHP as an example (LAMP)"

Terms: Running server side scripts using PHP as an example (LAMP)