Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 6044000

Browse files
committed
config moved to root
1 parent 4b5a3a4 commit 6044000

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

app/Bootstrap.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ class Bootstrap
1212
public static function boot(): Configurator
1313
{
1414
$configurator = new Configurator;
15+
$appDir = dirname(__DIR__);
1516

1617
//$configurator->setDebugMode('[email protected]'); // enable for your remote IP
17-
$configurator->enableTracy(__DIR__ . '/../log');
18+
$configurator->enableTracy($appDir . '/log');
1819

1920
$configurator->setTimeZone('Europe/Prague');
20-
$configurator->setTempDirectory(__DIR__ . '/../temp');
21+
$configurator->setTempDirectory($appDir . '/temp');
2122

2223
$configurator->createRobotLoader()
2324
->addDirectory(__DIR__)
2425
->register();
2526

2627
$configurator
27-
->addConfig(__DIR__ . '/config/common.neon')
28-
->addConfig(__DIR__ . '/config/local.neon');
28+
->addConfig($appDir . '/config/common.neon')
29+
->addConfig($appDir . '/config/local.neon');
2930

3031
return $configurator;
3132
}
File renamed without changes.
File renamed without changes.

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Then visit `http://localhost:8000` in your browser to see the welcome page.
3636
For Apache or Nginx, setup a virtual host to point to the `www/` directory of the project and you
3737
should be ready to go.
3838

39-
It is CRITICAL that whole `app/`, `log/` and `temp/` directories are not accessible directly
39+
It is CRITICAL that whole `app/`, `config`, `log/` and `temp/` directories are not accessible directly
4040
via a web browser. See [security warning](https://nette.org/security-warning).
4141

4242

0 commit comments

Comments
 (0)