Skip to content

Commit

Permalink
Add base_path
Browse files Browse the repository at this point in the history
  • Loading branch information
semhoun committed Oct 6, 2019
1 parent 27c6258 commit f382bc3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
// Global Settings Object
$containerBuilder->addDefinitions([
'settings' => [
// Base path
'base_path' => '',

// Is debug mode
'debug' => (getenv('APPLICATION_ENV') != 'production'),

Expand Down
1 change: 1 addition & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

// Instantiate the app
$app = AppFactory::createFromContainer($container);
$app->setBasePath($settings['base_path']);

// Register middleware
$middleware = require $rootPath . '/conf/middleware.php';
Expand Down

0 comments on commit f382bc3

Please # to comment.