Skip to content

Commit

Permalink
DI container initialize method: Tracy Bar dependency problem
Browse files Browse the repository at this point in the history
  • Loading branch information
VladaHejda committed Apr 24, 2015
1 parent 6acb385 commit b459baa
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/config/config.neon
Expand Up @@ -18,8 +18,15 @@ application:
session:
expiration: 14 days

nette:
debugger:
bar:
- Panel

services:
- App\Model\UserManager
- App\Forms\SignFormFactory
router: App\RouterFactory::createRouter

-
class: MyService
5 changes: 5 additions & 0 deletions app/model/MyService.php
@@ -0,0 +1,5 @@
<?php

class MyService
{
}
18 changes: 18 additions & 0 deletions app/model/Panel.php
@@ -0,0 +1,18 @@
<?php

class Panel implements \Tracy\IBarPanel
{

public function __construct(MyService $myService)
{
}

public function getTab()
{
}

public function getPanel()
{
}

}

0 comments on commit b459baa

Please sign in to comment.