for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the BEAR.Resource package.
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace BEAR\Resource\Module;
use BEAR\Resource\Annotation\JsonSchema;
use BEAR\Resource\Interceptor\JsonSchemaInterceptor;
use BEAR\Resource\ResourceObject;
use Ray\Di\AbstractModule;
class JsonSchemalModule extends AbstractModule
{
* {@inheritdoc}
protected function configure()
$this->bindInterceptor(
$this->matcher->subclassesOf(ResourceObject::class),
$this->matcher->annotatedWith(JsonSchema::class),
[JsonSchemaInterceptor::class]
);
}