Fixed indendentation.

This commit is contained in:
Marco Vito Moscaritolo 2015-05-31 17:26:53 +02:00
parent b1e387e195
commit 9d03112aed
8 changed files with 53 additions and 52 deletions

View file

@ -41,7 +41,14 @@ class Application extends b8\Application
*/
protected $projectStore;
public function __construct(Config $config, Request $request, Response $response, UserStore $userStore, ProjectStore $projectStore, Container $container)
public function __construct(
Config $config,
Request $request,
Response $response,
UserStore $userStore,
ProjectStore $projectStore,
Container $container
)
{
$this->config = $config;
$this->response = $response;
@ -148,14 +155,8 @@ class Application extends b8\Application
public function getController()
{
if (empty($this->controller)) {
try {
$this->controller = $this->container->get('application.controller.' . strtolower($this->route['controller']));
}
catch (\Exception $e) {
var_dump($this->route);
var_dump($e);
}
}
return $this->controller;
}