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