Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Support for application parameters in fixtures #34

Open
dvc opened this issue Feb 5, 2014 · 2 comments
Open

Support for application parameters in fixtures #34

dvc opened this issue Feb 5, 2014 · 2 comments

Comments

@dvc
Copy link

dvc commented Feb 5, 2014

for example:

# app/config/parameters.yml
parameters:
   base_path: web/files

#.../DataFixtures/data.yml
model: Me\MyBundle\Entity\File
fixtures:
  file1:
    src: %base_path%/1.jpg

SELECT * from File
id, src
1, web/files/1.jpg

It could helps for deploy and testing.

@khepin
Copy link
Owner

khepin commented Feb 6, 2014

Could be good indeed. You're welcome to send a PR for it ;)

@luishdez
Copy link

+1 This will be awesome

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants