| Q | A
|------------ | ------
| BC Break | yes
| Version | 1.8.3
Trying to call PropertyDirectoryNamer breaks the page, same with Vich\UploaderBundle\Naming\SubdirDirectoryNamer
Symfony throws the following error:
Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "The "Vich\UploaderBundle\Naming\PropertyDirectoryNamer" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead." at D:\radiopharma\vendor\symfony\symfony\src\Symfony\Component\DependencyInjection\Container.php line 337
enabling the Directory namer in the config.yml file while running Symfony version 3.4.11

either PropertyDirectoryName is given public access or there is another method, not stated in the documentations, to inject the service
Hi,
instead of Vich\UploaderBundle\Naming\PropertyDirectoryNamer, use alias vich_uploader.namer_directory_property
@WassabiVl did you solve with above suggestion?
Closing for missing feedback
Most helpful comment
Hi,
instead of Vich\UploaderBundle\Naming\PropertyDirectoryNamer, use alias vich_uploader.namer_directory_property