Skip to content

Commit 32db61a

Browse files
committed
refactor(config): removed duplicated and deprecated configurations
1 parent 203895c commit 32db61a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

app/config/config_sample.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,8 @@
1616
// Set the default locale
1717
setlocale(LC_ALL, 'en_US.UTF-8');
1818

19-
Flight::set('flight.base_url', '/'); // if this is in a subdirectory, you'll need to change this
20-
Flight::set('flight.case_sensitive', false); // if you want case sensitive routes, set this to true
21-
Flight::set('flight.log_errors', true); // if you want to log errors, set this to true
2219
Flight::set('flight.handle_errors', false); // if you want flight to handle errors, set this to true
2320
Flight::set('flight.views.path', __DIR__ . '/../views'); // set the path to your view/template/ui files
24-
Flight::set('flight.views.extension', '.php'); // set the file extension for your view/template/ui files
25-
Flight::set('flight.content_length', true); // if flight should send a content length header
2621

2722
/*
2823
* Get Tracy up and running
@@ -33,14 +28,15 @@
3328
* https://tracy.nette.org/
3429
*/
3530
Debugger::enable(); // auto tries to figure out your environment
36-
// Debugger::enable(Debugger::DEVELOPMENT) // sometimes you have to be explicit (also Debugger::PRODUCTION)
31+
// Debugger::enable(Debugger::Development); // sometimes you have to be explicit (also Debugger::Production)
3732
// Debugger::enable('23.75.345.200'); // you can also provide an array of IP addresses
3833
Debugger::$logDirectory = __DIR__ . '/../log';
3934
Debugger::$strictMode = true; // display all errors
4035
// Debugger::$strictMode = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED; // all errors except deprecated notices
4136

37+
// if Debugger bar is visible, then content-length can not be set by Flight
4238
if (Debugger::$showBar) {
43-
Flight::set('flight.content_length', false); // if Debugger bar is visible, then content-length can not be set by Flight
39+
Flight::set('flight.content_length', false);
4440
(new Container)->get(TracyExtensionLoader::class);
4541
}
4642

0 commit comments

Comments
 (0)