Skip to content

Commit

Permalink
synfony update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed Jul 25, 2023
1 parent 7469858 commit 6f53e50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
**Step 1** — update your `composer.json`:
```composer.json
"require": {
"peterson/database": "^4.3.1"
"peterson/database": "^4.3.0"
}
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"psr/log": "^1.0 || ^1.1.4",
"vlucas/phpdotenv": "^5.3",
"filp/whoops": "^2.15",
"kint-php/kint": "^5.0"
"symfony/var-dumper": "^5.4.3"
},
"autoload": {
"files": [
Expand Down
10 changes: 3 additions & 7 deletions src/Traits/ReusableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

namespace builder\Database\Traits;

use Kint\Kint;
use Kint\Renderer\RichRenderer;
use builder\Database\Capsule\Manager;
use Symfony\Component\VarDumper\VarDumper;

trait ReusableTrait{

Expand All @@ -21,15 +20,12 @@ public function dump(...$data)
// if DEBUG MODE IS ON
if(Manager::AppDebug()){
$dataArray = $data[0] ?? $data;
RichRenderer::$folder = false;
RichRenderer::$theme = 'solarized.css';

if(is_array($dataArray)){
foreach ($dataArray as $var) {
Kint::dump($var);
VarDumper::dump($var);
}
} else{
Kint::dump($dataArray);
VarDumper::dump($dataArray);
}
}
}
Expand Down

0 comments on commit 6f53e50

Please sign in to comment.