Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Apr 29, 2022
1 parent def4cca commit dc0163c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PHP: **7.2.5+, 8.0+**, current release: **1.1.7** build 2022-04-29
PHP: **7.2.5+, 8.0+**, current release: **1.1.8** build 2022-04-29

## Supported versions of Symfony: **4.4+**, **5.x**, **6.x**

Expand Down Expand Up @@ -284,7 +284,7 @@ ___

**- 1.0.36** - Added support for multiple arguments in xdump(), user debug moved to bottom of the debugger window, added version info, added dumped items counters and some more features (2022-04-29)

**- 1.1.7** - Added doctrine entities and repositories debugger, added parameters dumper, increased configuration options and added some other small improvements (2022-04-29)
**- 1.1.8** - Added doctrine entities and repositories debugger, added parameters dumper, increased configuration options and added some other small improvements (2022-04-29)

# Credits

Expand Down
11 changes: 8 additions & 3 deletions src/Core/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
use Symfony\Component\VarDumper\Dumper\AbstractDumper;
use Szczyglis\ExtendedDumpBundle\Event\MultiDumpEvents;
use Szczyglis\ExtendedDumpBundle\Event\RenderEvent;

Expand Down Expand Up @@ -65,7 +64,11 @@ class Generator
* @param EventDispatcherInterface $dispatcher
* @param InternalDumper $internalDumper
*/
public function __construct(array $config, Environment $twig, KernelInterface $kernel, EventDispatcherInterface $dispatcher, InternalDumper $internalDumper)
public function __construct(array $config,
Environment $twig,
KernelInterface $kernel,
EventDispatcherInterface $dispatcher,
InternalDumper $internalDumper)
{
$this->config = $config;
$this->twig = $twig;
Expand All @@ -77,7 +80,9 @@ public function __construct(array $config, Environment $twig, KernelInterface $k
/**
* @param ResponseEvent $event
* @return string Rendered output
* @throws \ReflectionException
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
*/
public function generate(ResponseEvent $event)
{
Expand Down
4 changes: 3 additions & 1 deletion src/Core/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ public function __construct(RequestStack $requestStack, Generator $generator)

/**
* @param ResponseEvent $event
* @throws \ReflectionException
* @throws \Twig\Error\LoaderError
* @throws \Twig\Error\RuntimeError
* @throws \Twig\Error\SyntaxError
*/
public function handle(ResponseEvent $event)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ExtendedDumpBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
*/
class ExtendedDumpBundle extends Bundle
{
public const VERSION = '1.1.7';
public const VERSION = '1.1.8';
public const VERSION_BUILD = '2022-04-29';
}

0 comments on commit dc0163c

Please sign in to comment.