1 | <?php |
||
36 | class ConfigurableFinderFactory implements FinderFactoryInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The DI container builder instance. |
||
41 | * |
||
42 | * @var \Symfony\Component\DependencyInjection\TaggedContainerInterface |
||
43 | */ |
||
44 | protected $container; |
||
45 | |||
46 | /** |
||
47 | * The configuration instance. |
||
48 | * |
||
49 | * @var \TechDivision\Import\Configuration\ConfigurationInterface |
||
50 | */ |
||
51 | protected $configuration; |
||
52 | |||
53 | /** |
||
54 | * The constructor to initialize the instance. |
||
55 | * |
||
56 | * @param \Symfony\Component\DependencyInjection\TaggedContainerInterface $container The container instance |
||
57 | * @param \TechDivision\Import\Configuration\ConfigurationInterface $configuration The configuration instance |
||
58 | */ |
||
59 | public function __construct(TaggedContainerInterface $container, ConfigurationInterface $configuration) |
||
64 | |||
65 | /** |
||
66 | * Initialize's and return's a new finder instance. |
||
67 | * |
||
68 | * @param \TechDivision\Import\Repositories\FinderAwareRepositoryInterface $repository The repository instance to create the finder for |
||
69 | * @param string $key The key of the prepared statement |
||
70 | * |
||
71 | * @return \TechDivision\Import\Repositories\Finders\FinderInterface The finder instance |
||
72 | */ |
||
73 | public function createFinder(FinderAwareRepositoryInterface $repository, $key) |
||
77 | } |
||
78 |