1 | <?php |
||
35 | class FileResolverFactory implements FileResolverFactoryInterface |
||
36 | { |
||
37 | |||
38 | /** |
||
39 | * The DI container instance. |
||
40 | * |
||
41 | * @var \Symfony\Component\DependencyInjection\ContainerInterface |
||
42 | */ |
||
43 | protected $container; |
||
44 | |||
45 | /** |
||
46 | * Initialize the factory with the DI container instance. |
||
47 | * |
||
48 | * @param \Symfony\Component\DependencyInjection\ContainerInterface $container The DI container instance |
||
49 | */ |
||
50 | public function __construct(ContainerInterface $container) |
||
54 | |||
55 | /** |
||
56 | * Creates and returns the file resolver instance for the subject with the passed configuration. |
||
57 | * |
||
58 | * @param \TechDivision\Import\Configuration\SubjectConfigurationInterface $subject The subject to create the file resolver for |
||
59 | * |
||
60 | * @return \TechDivision\Import\Subjects\FileResolver\FileResolverInterface The file resolver instance |
||
61 | */ |
||
62 | public function createFileResolver(SubjectConfigurationInterface $subject) |
||
72 | } |
||
73 |