@@ -12,7 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | private $repository; |
14 | 14 | |
15 | - public function __construct() { |
|
15 | + public function __construct() |
|
16 | + { |
|
16 | 17 | $this->repository = new UserRepository(); |
17 | 18 | } |
18 | 19 |
@@ -11,7 +11,8 @@ |
||
11 | 11 | { |
12 | 12 | private $repository; |
13 | 13 | |
14 | - public function __construct() { |
|
14 | + public function __construct() |
|
15 | + { |
|
15 | 16 | $this->repository = new UserRepository(); |
16 | 17 | } |
17 | 18 | } |
18 | 19 | \ No newline at end of file |
@@ -15,7 +15,8 @@ |
||
15 | 15 | /* @var $router Router */ |
16 | 16 | private $router; |
17 | 17 | |
18 | - public function __construct(DiInterface $container, Manager $eventsManager) { |
|
18 | + public function __construct(DiInterface $container, Manager $eventsManager) |
|
19 | + { |
|
19 | 20 | $this->setDI($container); |
20 | 21 | $this->init(); |
21 | 22 | $this->router->setEventsManager($eventsManager); |
@@ -18,7 +18,8 @@ |
||
18 | 18 | /* @var $eventsManager Manager */ |
19 | 19 | private $eventsManager; |
20 | 20 | |
21 | - public function __construct(DiInterface $container) { |
|
21 | + public function __construct(DiInterface $container) |
|
22 | + { |
|
22 | 23 | $this->setDI($container); |
23 | 24 | $this->init(); |
24 | 25 | } |