Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Fix Facade
Browse files Browse the repository at this point in the history
The facade must be initiated before launching the debug.
  • Loading branch information
theofidry committed Nov 25, 2016
1 parent 91a3c56 commit db090e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
]
},
"autoload-dev": {
"psr-4": { "Fidry\\PsyshBundle\\": "tests" }
"psr-4": { "Fidry\\PsyshBundle\\": "tests" },
"files": [
"tests/Functional/AppKernel.php"
]
},
"config": {
"bin-dir": "bin",
Expand Down
2 changes: 2 additions & 0 deletions src/PsyshFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public static function init()

public static function debug(array $variables = [], $bind = null)
{
self::init();

$_variables = array_merge(self::$shell->getScopeVariables(), $variables);

extract(
Expand Down

0 comments on commit db090e5

Please sign in to comment.