@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | 'displayErrorDetails' => true, |
13 | 13 | 'addContentLengthHeader' => false, |
14 | 14 | 'determineRouteBeforeAppMiddleware' => true, |
15 | - 'debug'=>true , |
|
15 | + 'debug'=>true, |
|
16 | 16 | 'translation' => [ |
17 | 17 | 'default_lang' => 'en', |
18 | 18 | 'translations_path' => $APPROOT . 'translations/', |
@@ -26,15 +26,15 @@ discard block |
||
26 | 26 | 'path' => __DIR__ . '/../storage/logs/app.log', |
27 | 27 | ], |
28 | 28 | 'db' => [ |
29 | - 'driver' => $env($APPROOT,'DB_DRIVER', 'mysql'), |
|
30 | - 'host' => $env($APPROOT,'DB_HOST', 'localhost'), |
|
31 | - 'database' => $env($APPROOT,'DB_NAME', 'cafesaba'), |
|
32 | - 'username' => $env($APPROOT,'DB_USERNAME', 'root'), |
|
33 | - 'password' => $env($APPROOT,'DB_PASS', 'root'), |
|
34 | - 'charset' => $env($APPROOT,'DB_CHARSET', 'utf8'), |
|
35 | - 'collation' => $env($APPROOT,'DB_COLLATION', 'utf8_unicode_ci'), |
|
36 | - 'prefix' => $env($APPROOT,'DB_PREFIX', ''), |
|
37 | - 'port' => $env($APPROOT,'DB_PORT', 3306), |
|
29 | + 'driver' => $env($APPROOT, 'DB_DRIVER', 'mysql'), |
|
30 | + 'host' => $env($APPROOT, 'DB_HOST', 'localhost'), |
|
31 | + 'database' => $env($APPROOT, 'DB_NAME', 'cafesaba'), |
|
32 | + 'username' => $env($APPROOT, 'DB_USERNAME', 'root'), |
|
33 | + 'password' => $env($APPROOT, 'DB_PASS', 'root'), |
|
34 | + 'charset' => $env($APPROOT, 'DB_CHARSET', 'utf8'), |
|
35 | + 'collation' => $env($APPROOT, 'DB_COLLATION', 'utf8_unicode_ci'), |
|
36 | + 'prefix' => $env($APPROOT, 'DB_PREFIX', ''), |
|
37 | + 'port' => $env($APPROOT, 'DB_PORT', 3306), |
|
38 | 38 | ], |
39 | 39 | 'view' => [ |
40 | 40 | 'path' => '../app/View', |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | 'showSlimEnvironmentPanel' => 1, |
55 | 55 | 'showSlimRequestPanel' => 1, |
56 | 56 | 'showSlimResponsePanel' => 1, |
57 | - 'showSlimContainer' =>1 , |
|
57 | + 'showSlimContainer' =>1, |
|
58 | 58 | 'showEloquentORMPanel' => 1, |
59 | - 'showIdiormPanel' => 0,// > 0 mean you enable logging |
|
59 | + 'showIdiormPanel' => 0, // > 0 mean you enable logging |
|
60 | 60 | // but show or not panel you decide in browser in panel selector |
61 | - 'showDoctrinePanel' => 'em',// here also enable logging and you must enter your Doctrine container name |
|
61 | + 'showDoctrinePanel' => 'em', // here also enable logging and you must enter your Doctrine container name |
|
62 | 62 | // and also as above show or not panel you decide in browser in panel selector |
63 | 63 | 'showProfilerPanel' => 1, |
64 | 64 | 'showVendorVersionsPanel' => 1, |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if($config['settings']['debug'] && $config['settings']['tracy']['active']) { |
|
2 | +if ($config['settings']['debug'] && $config['settings']['tracy']['active']) { |
|
3 | 3 | $app->add(new RunTracy\Middlewares\TracyMiddleware($app)); |
4 | 4 | } |
5 | 5 |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | -define('__APP_ROOT__',__DIR__ . '/../') ; |
|
3 | -require __APP_ROOT__.'bootstrap/bootstrap.php'; |
|
4 | -require __APP_ROOT__.'vendor/autoload.php'; |
|
5 | -require __APP_ROOT__.'config/settings.php'; |
|
2 | +define('__APP_ROOT__', __DIR__ . '/../'); |
|
3 | +require __APP_ROOT__ . 'bootstrap/bootstrap.php'; |
|
4 | +require __APP_ROOT__ . 'vendor/autoload.php'; |
|
5 | +require __APP_ROOT__ . 'config/settings.php'; |
|
6 | 6 | |
7 | -require __APP_ROOT__.'core/Functions/general_helpers.php'; |
|
7 | +require __APP_ROOT__ . 'core/Functions/general_helpers.php'; |
|
8 | 8 | |
9 | 9 | |
10 | 10 | $app = new \Core\App($config); |
11 | 11 | |
12 | -if($config['settings']['debug'] && !$config['settings']['tracy']['active']){ |
|
12 | +if ($config['settings']['debug'] && !$config['settings']['tracy']['active']) { |
|
13 | 13 | ini_set('display_errors', 1); |
14 | 14 | ini_set('display_startup_errors', 1); |
15 | 15 | error_reporting(E_ALL); |
@@ -18,18 +18,18 @@ discard block |
||
18 | 18 | |
19 | 19 | use SlimFacades\Facade; |
20 | 20 | // get container app |
21 | -require __APP_ROOT__.'bootstrap/dependencies.php'; |
|
21 | +require __APP_ROOT__ . 'bootstrap/dependencies.php'; |
|
22 | 22 | |
23 | -require __APP_ROOT__.'bootstrap/routes.php'; |
|
24 | -require __APP_ROOT__.'core/Functions/helpers.php'; |
|
23 | +require __APP_ROOT__ . 'bootstrap/routes.php'; |
|
24 | +require __APP_ROOT__ . 'core/Functions/helpers.php'; |
|
25 | 25 | |
26 | -if(php_sapi_name() != 'cli') { |
|
27 | - if($config['settings']['debug'] && $config['settings']['tracy']['active']){ |
|
26 | +if (php_sapi_name() != 'cli') { |
|
27 | + if ($config['settings']['debug'] && $config['settings']['tracy']['active']) { |
|
28 | 28 | Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, $config['settings']['tracy']['path']); |
29 | 29 | } |
30 | 30 | Facade::setFacadeApplication($app); |
31 | 31 | |
32 | - require __APP_ROOT__.'bootstrap/middlewares.php'; |
|
32 | + require __APP_ROOT__ . 'bootstrap/middlewares.php'; |
|
33 | 33 | |
34 | 34 | $app->run(); |
35 | 35 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * @param Core\Services\AuthService\AuthService |
17 | 17 | * @return AuthService |
18 | - */ |
|
18 | + */ |
|
19 | 19 | protected static function getFacadeAccessor() |
20 | 20 | { |
21 | 21 | return 'AuthService'; |