Skip to content

Commit b459baa

Browse files
author
VladaHejda
committed
DI container initialize method: Tracy Bar dependency problem
1 parent 6acb385 commit b459baa

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

app/config/config.neon

+7
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,15 @@ application:
1818
session:
1919
expiration: 14 days
2020

21+
nette:
22+
debugger:
23+
bar:
24+
- Panel
2125

2226
services:
2327
- App\Model\UserManager
2428
- App\Forms\SignFormFactory
2529
router: App\RouterFactory::createRouter
30+
31+
-
32+
class: MyService

app/model/MyService.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
class MyService
4+
{
5+
}

app/model/Panel.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
class Panel implements \Tracy\IBarPanel
4+
{
5+
6+
public function __construct(MyService $myService)
7+
{
8+
}
9+
10+
public function getTab()
11+
{
12+
}
13+
14+
public function getPanel()
15+
{
16+
}
17+
18+
}

0 commit comments

Comments
 (0)