1 | <?php |
||
11 | class ManagerConfigurator |
||
12 | { |
||
13 | /** @var string[] */ |
||
14 | private $enabledFilters = []; |
||
15 | |||
16 | /** @var array<string,array<string,string>> */ |
||
17 | private $filtersParameters = []; |
||
18 | |||
19 | /** |
||
20 | * @param string[] $enabledFilters |
||
21 | * @param array<string,array<string,string>> $filtersParameters |
||
22 | */ |
||
23 | public function __construct(array $enabledFilters, array $filtersParameters) |
||
28 | |||
29 | /** |
||
30 | * Create a connection by name. |
||
31 | */ |
||
32 | public function configure(EntityManagerInterface $entityManager) |
||
36 | |||
37 | /** |
||
38 | * Enables filters for a given entity manager |
||
39 | */ |
||
40 | private function enableFilters(EntityManagerInterface $entityManager) : void |
||
56 | |||
57 | /** |
||
58 | * Sets default parameters for a given filter |
||
59 | */ |
||
60 | private function setFilterParameters(string $name, SQLFilter $filter) : void |
||
71 | } |
||
72 |