diff --git a/src/Provide/Representation/RepresentationModule.php b/src/Provide/Representation/RepresentationModule.php index 8dbf7524..cc8c6f45 100644 --- a/src/Provide/Representation/RepresentationModule.php +++ b/src/Provide/Representation/RepresentationModule.php @@ -9,6 +9,7 @@ use BEAR\Resource\JsonRenderer; use BEAR\Resource\RenderInterface; use Ray\Di\AbstractModule; +use Ray\Di\Scope; class RepresentationModule extends AbstractModule { @@ -17,6 +18,6 @@ class RepresentationModule extends AbstractModule */ protected function configure() { - $this->bind(RenderInterface::class)->to(JsonRenderer::class); + $this->bind(RenderInterface::class)->to(JsonRenderer::class)->in(Scope::SINGLETON); } }