Created
February 5, 2018 08:59
-
-
Save aasumitro/1c2dfe1ecdcb5a24b930348ef90ef470 to your computer and use it in GitHub Desktop.
config dependencies.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 | |
/* | |
|---------------------------------------------------- | |
| Container | | |
|---------------------------------------------------- | |
*/ | |
$container = $app->getContainer(); | |
/* | |
|---------------------------------------------------- | |
| Controller | | |
|---------------------------------------------------- | |
*/ | |
$container['TestController'] = function ($container) { | |
return new \App\Controllers\TestController($container); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment