I hereby claim:
- I am danielgsims on github.
- I am dasim (https://keybase.io/dasim) on keybase.
- I have a public key ASDgQLm0cNo7UfGYPjetoyEYunNyML1slOT8k8m_7NvTZgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{} |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
$app = new \Slim\App(); | |
$app['resolver'] = new \Slim\Resolvers\DependencyResolver($app); | |
$app['dependency'] = function() { | |
return new MyDependency; | |
}; | |
$app['ExampleController'] = function($c) { | |
return new MyController($c['response'],$c['dependency']); | |
}; |
$app = new \Slim\App(); | |
$app['resolver'] = new \Slim\Resolvers\ContainerResolver($app); | |
$app->get('/', 'MyController:index'); | |
$app->run(); | |
class MyController | |
{ | |
protected $app; |