diff --git a/PHPCI/Application.php b/PHPCI/Application.php index 46e213ff..ca96b92d 100644 --- a/PHPCI/Application.php +++ b/PHPCI/Application.php @@ -18,6 +18,7 @@ use b8\Http\Router; use b8\View; use PHPCI\Store\UserStore; use PHPCI\Store\ProjectStore; +use Symfony\Component\DependencyInjection\Container; /** * PHPCI Front Controller @@ -40,13 +41,14 @@ class Application extends b8\Application */ protected $projectStore; - public function __construct(Config $config, Request $request, Response $response, UserStore $userStore, ProjectStore $projectStore) + public function __construct(Config $config, Request $request, Response $response, UserStore $userStore, ProjectStore $projectStore, Container $container) { $this->config = $config; $this->response = $response; $this->request = $request; $this->userStore = $userStore; $this->projectStore = $projectStore; + $this->container = $container; $this->router = new Router($this, $this->request, $this->config); diff --git a/services.yml b/services.yml index d66f3f47..69115d9b 100644 --- a/services.yml +++ b/services.yml @@ -40,7 +40,13 @@ services: arguments: [%config_file%] application: class: PHPCI\Application - arguments: [@config, @http.request, @http.response, @storage.user, @storage.project] + arguments: + - @config + - @http.request + - @http.response + - @storage.user + - @storage.project + - @service_container service.build: class: PHPCI\Service\BuildService arguments: [@storage.build]