Skip to content

Commit

Permalink
Merge branch 'release/v0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
betterthanclay committed Sep 25, 2020
2 parents b3d19d1 + d72f7c1 commit 9ac1afd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.5.2 (2020-09-25)
* Switched to Glitch Dumpable interface

## v0.5.1 (2020-09-24)
* Updated Composer dependency handling

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}],
"require": {
"php": "^7.2",
"decodelabs/glitch": "^0.15"
"decodelabs/glitch": "^0.15.6"
},
"require-dev": {
"phpunit/phpunit": "^8",
Expand All @@ -27,7 +27,7 @@
},
"extra": {
"branch-alias": {
"dev-develop": "0.6.x-dev"
"dev-develop": "0.5.x-dev"
}
}
}
13 changes: 5 additions & 8 deletions src/Veneer/Binding.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
use DecodeLabs\Glitch\Exception\Factory as Glitch;
use Psr\Container\ContainerInterface;

use DecodeLabs\Glitch\Inspectable;
use DecodeLabs\Glitch\Dumper\Entity;
use DecodeLabs\Glitch\Dumper\Inspector;
use DecodeLabs\Glitch\Dumpable;

class Binding
{
Expand Down Expand Up @@ -128,7 +126,7 @@ private function loadPlugins(array $pluginNames): void
}

return $output;
}) implements Inspectable {
}) implements Dumpable {
const FACADE_PLUGIN = true;

protected $loader;
Expand Down Expand Up @@ -167,15 +165,14 @@ private function loadPlugin()
/**
* Inspect for Glitch
*/
public function glitchInspect(Entity $entity, Inspector $inspector): void
public function glitchDump(): iterable
{
if (!$this->plugin) {
$this->loadPlugin();
}

$entity
->setClassName('@PluginWrapper')
->setSingleValue($inspector($this->plugin));
yield 'className' => '@PluginWrapper';
yield 'value' => $this->plugin;
}
};
}
Expand Down

0 comments on commit 9ac1afd

Please sign in to comment.