Skip to content

Commit

Permalink
readme: replace tabs by spaces to remove stupid Github's red color
Browse files Browse the repository at this point in the history
  • Loading branch information
Miloslav Hůla committed Dec 18, 2017
1 parent 650d70c commit b7bf7c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,34 @@ Use [Composer](https://getcomposer.org) and require `milo/vendor-versions` packa
Register panel in `config.neon`:
```yaml
extensions:
vendorVersions: Milo\VendorVersions\Bridges\Nette\DI\Extension(%debugMode%)
vendorVersions: Milo\VendorVersions\Bridges\Nette\DI\Extension(%debugMode%)

# Optionally set path to composer.json file
vendorVersions:
path: 'path/to/composer.json'
path: 'path/to/composer.json'

# When you use panel multiple times, you may wish to adjust some visual properties
vendorVersions:
panelTitle: 'For deployment'
iconColor: 'green'
panelTitle: 'For deployment'
iconColor: 'green'
```
## Manual panel registration
```php
Tracy\Debugger::getBar()->addPanel(
new Milo\VendorVersions\Panel
new Milo\VendorVersions\Panel
);


# Optionally set path to composer.json file
Tracy\Debugger::getBar()->addPanel(
new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
);

# When you use panel multiple times, you may wish to adjust some visual properties
Tracy\Debugger::getBar()->addPanel(
$panel = new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
$panel = new Milo\VendorVersions\Panel(__DIR__ . '/some/dir')
);
$panel->setPanelTitle('For deployment');
$panel->setIconColor('green');
Expand Down

0 comments on commit b7bf7c9

Please sign in to comment.