Skip to content
Snippets Groups Projects
Commit 410e4a27 authored by root's avatar root
Browse files

Hide error when not in development environment

parent 15ce9b94
Branches
1 merge request!1Project structure
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
$env = getenv('DAGOJEK_ENV');
if (!$env || $env == "development") {
$env = "development";
error_reporting(E_ALL);
ini_set('display_errors', 1);
}
require __DIR__.'/../src/app.php';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment