protected function registerHttpMethods()
{
$this->app->bind('request_container', function ($app, $params) {
return new RequestContainer($params, $app['request'], $app['router']);
});
$this->app->bind('query_builders', function ($app) {
return with(new QueryBuilderFactory())->make($this->requestContainer->getInput(), $app);
});
$this->app->bind('query_executer', function ($app, $params) {
$this->requestContainer = $app->make('request_container', $params);
return with(new QueryExecuterFactory())->make($this->requestContainer, $app);
});
$this->app->bind('content_type', function ($app) {
return with(new ContentTypeFactory())->make($this->requestContainer, $app['view_manager'], $app['config']);
});
$this->app->bind('http_method', function ($app, $params) {
$request_type = ucfirst(strtolower($app['request']->server('REQUEST_METHOD')));
return with(new HttpMethodFactory())->make($params, $app, $request_type);
});
}