Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
web
/
vhosts
/
www.humitest.fr
/
htdocs
/
vendor
/
vich
/
uploader-bundle
/
Naming
/
/srv/data/web/vhosts/www.humitest.fr/htdocs/vendor/vich/uploader-bundle/Naming/UniqidNamer.php
<?php namespace Vich\UploaderBundle\Naming; use Vich\UploaderBundle\Mapping\PropertyMapping; /** * UniqidNamer. * * @author Emmanuel Vella <vella.emmanuel@gmail.com> */ class UniqidNamer implements NamerInterface { use Polyfill\FileExtensionTrait; public function name($object, PropertyMapping $mapping): string { $file = $mapping->getFile($object); $name = str_replace('.', '', uniqid('', true)); if ($extension = $this->getExtension($file)) { $name = sprintf('%s.%s', $name, $extension); } return $name; } }