Vichuploaderbundle: Service alias doesn't exist

Created on 5 Feb 2018  路  9Comments  路  Source: dustin10/VichUploaderBundle

I'm using Symfony 3.4 and Vich Uploader 1.8.1.
This is composer.lock file of my project:
... "name": "vich/uploader-bundle", "version": "1.8.1", ...
And this is namer.xml of bundle

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

<services>
    <service id="vich_uploader.namer_uniqid" class="Vich\UploaderBundle\Naming\UniqidNamer" public="true" />
    <service id="vich_uploader.namer_property" class="Vich\UploaderBundle\Naming\PropertyNamer" public="true" />
    <service id="vich_uploader.namer_origname" class="Vich\UploaderBundle\Naming\OrignameNamer" public="true" />
    <service id="vich_uploader.namer_hash" class="Vich\UploaderBundle\Naming\HashNamer" public="true" />
    <service id="vich_uploader.namer_base64" class="Vich\UploaderBundle\Naming\Base64Namer" public="true" />

    <service id="vich_uploader.directory_namer_subdir" class="Vich\UploaderBundle\Naming\SubdirDirectoryNamer" public="true" />
    <service id="vich_uploader.namer_directory_property" class="Vich\UploaderBundle\Naming\PropertyDirectoryNamer" public="true">
        <argument type="service" id="form.property_accessor" />
    </service>
</services>


But I don't have aliases. Why?

Most helpful comment

We need to release a new tag. Meanwhile, you can require 1.8*@dev version

All 9 comments

Where are you're looking for aliases?

@garak
I'm looking in vendor\vich\uploader-bundle\Resources\config\namer.xml

We need to release a new tag. Meanwhile, you can require 1.8*@dev version

@garak
I get dev-master and now it is ok.

Don't do it: you're risking to get next major version and break your project. It's safer to rely con current branch-alias

@garak
But I got an error when I require 1.8*@dev I think the right version is 1.8.*@dev.

It is, my bad

Is 1.8.*@dev safe for using in project?

Absolutely

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NicolaPez picture NicolaPez  路  6Comments

benIT picture benIT  路  3Comments

smilesrg picture smilesrg  路  6Comments

vialcollet picture vialcollet  路  5Comments

Propscode picture Propscode  路  4Comments