for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Ray.DoctrineOrmModule package
*
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Ray\DoctrineOrmModule;
use Ray\Di\AbstractModule;
use Ray\DoctrineOrmModule\Annotation\Transactional;
class TransactionalModule extends AbstractModule
{
* {@inheritdoc}
protected function configure()
// Class annotated with @Transactional
$this->bindInterceptor(
$this->matcher->annotatedWith(Transactional::class),
$this->matcher->any(),
[TransactionalInterceptor::class]
);
// Method annotated with @Transactional
}