Skip to content

Commit

Permalink
fix: add app instance to attach
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed May 19, 2023
1 parent 04acc37 commit 976305b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function config($name, $value = null)
*/
public function attach(callable $code)
{
call_user_func($code, \Leaf\Config::get());
call_user_func($code, $this, \Leaf\Config::get());
$this->loadConfig();
$this->setupErrorHandler();
}
Expand Down

0 comments on commit 976305b

Please sign in to comment.