1 | <?php |
||
12 | class ContentImageDirectoryNamer implements DirectoryNamerInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var Transliterator |
||
16 | */ |
||
17 | protected $transliterator; |
||
18 | |||
19 | public function __construct(Transliterator $transliterator) |
||
23 | |||
24 | /** |
||
25 | * Get short class name of given object : |
||
26 | * - AppBundle\Entity\Product : product |
||
27 | * - AppBundle\Entity\User : user |
||
28 | * |
||
29 | * @param object $object |
||
30 | * @param PropertyMapping $mapping |
||
31 | * @return string |
||
32 | */ |
||
33 | public function directoryName($object, PropertyMapping $mapping): string |
||
40 | } |
||
41 |