Created
February 5, 2018 08:58
-
-
Save aasumitro/c0d64a779daf0baa7a3a09ad51649fb6 to your computer and use it in GitHub Desktop.
bootsrap app.php slim 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|---------------------------------------------------- | |
| Register The Auto Loader | |
|---------------------------------------------------- | |
*/ | |
require __DIR__ . ('/../vendor/autoload.php'); | |
/* | |
|---------------------------------------------------- | |
| Slim Framework Setting | | |
|---------------------------------------------------- | |
*/ | |
$settings = require __DIR__ . ('/../config/settings.php'); | |
$app = new \Slim\App($settings); | |
/* | |
|---------------------------------------------------- | |
| File dependencies | | |
|---------------------------------------------------- | |
*/ | |
require __DIR__ . ('/../config/dependencies.php'); | |
/* | |
|---------------------------------------------------- | |
| File Router | | |
|---------------------------------------------------- | |
*/ | |
require __DIR__ . ('/../app/routes.php'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment