Skip to content

Commit

Permalink
added Configurator::enableTracy as alias for enableDebugger
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 19, 2016
1 parent f41c0f9 commit 4db37e6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"suggest": {
"nette/robot-loader": "to use Configurator::createRobotLoader()",
"tracy/tracy": "to use Configurator::enableDebugger()"
"tracy/tracy": "to use Configurator::enableTracy()"
},
"require-dev": {
"nette/application": "~2.3",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Activates Tracy in strict mode:

```php
//$configurator->setDebugMode(TRUE);
$configurator->enableDebugger(__DIR__ . '/../log');
$configurator->enableTracy(__DIR__ . '/../log');
```

Setup directory for temporary files
Expand Down
13 changes: 11 additions & 2 deletions src/Bootstrap/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,19 @@ protected function getDefaultParameters()


/**
* @param string error log directory
* @param string administrator email
* @param string error log directory
* @param string administrator email
* @return void
*/
public function enableTracy($logDirectory = NULL, $email = NULL)
{
$this->enableDebugger($logDirectory, $email);
}


/**
* Alias for enableTracy()
*/
public function enableDebugger($logDirectory = NULL, $email = NULL)
{
Tracy\Debugger::$strictMode = TRUE;
Expand Down

0 comments on commit 4db37e6

Please sign in to comment.