for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AmaTeam\ElasticSearch\Entity\Annotation;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Indexing\DocumentAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Clazz\ClassParameterAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Clazz\ClassTypeAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyForcedViewsAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyParameterAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyTargetClassAnnotationListener;
use AmaTeam\ElasticSearch\Entity\Annotation\Listener\Mapping\Property\PropertyTypeAnnotationListener;
/**
* Silly direct dependency decoupling
*/
class ListenerProvider
{
public static function getClassListeners(): array
return [
new DocumentAnnotationListener(),
new ClassParameterAnnotationListener(),
new ClassTypeAnnotationListener(),
];
}
public static function getPropertyListeners(): array
new PropertyTargetClassAnnotationListener(),
new PropertyTypeAnnotationListener(),
new PropertyParameterAnnotationListener(),
new PropertyForcedViewsAnnotationListener(),