How can I parse a Symfony parameter into the fixtures.yml file of Alice

Viewed 350

I'm stuck with the package nelmio/alice (Expressive fixtures generator). I don't know how to parse a parameter from the general config/parameters.yml (in my case 'photoupload_directory') file into the fixtures.yml.

Now I have something hard coded like this:

photo: <Image('/Users/vivi/projects.2016/cvsymfony.local/storage/uploads/photos',1080,800,false,false)>...

I tried already:

photo: <Image(getParameter('photoupload_directory'),1080,800,false,false)>

but this is not working either. I also tried

$this->getParameter and $this->getContainer()->getParameter or the %photoupload_directory% notation).

Already searched the internet but so far nothing found.

1 Answers
Related