1 | <?php |
||
23 | class FileToObject |
||
24 | { |
||
25 | /** |
||
26 | * @var EntityManagerInterface |
||
27 | */ |
||
28 | private $manager; |
||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $entityClassName; |
||
33 | |||
34 | public function __construct(EntityManagerInterface $manager, ImageEntityNameResolver $nameResolver) |
||
41 | |||
42 | /** |
||
43 | * Fetches and returns the image object based on the file name. |
||
44 | * |
||
45 | * @param $filename |
||
46 | * |
||
47 | * @return mixed |
||
48 | * @internal param $entityClassName |
||
49 | */ |
||
50 | public function getObjectFromFilename($filename) |
||
63 | } |