for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the BEAR.Package package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace BEAR\Package\Provide\Representation;
use BEAR\Package\Annotation\ReturnCreatedResource;
use Ray\Di\AbstractModule;
class CreatedResourceModule extends AbstractModule
{
* {@inheritdoc}
protected function configure()
$this->bind(CreatedResourceRenderer::class);
$this->bindInterceptor(
$this->matcher->any(),
$this->matcher->annotatedWith(ReturnCreatedResource::class),
[CreatedResourceInterceptor::class]
);
}