Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default config nodes for import node by adding addDefaultsIfNotSet #4

Merged
merged 1 commit into from
Sep 2, 2012
Merged

Add default config nodes for import node by adding addDefaultsIfNotSet #4

merged 1 commit into from
Sep 2, 2012

Conversation

krizon
Copy link
Contributor

@krizon krizon commented Aug 6, 2012

Problem:

Using this bundle as plug-and-play without any custom configuration didn't work and I got the following exception:

[ErrorException]
  Notice: Undefined index: import in /...project.../vendor/avro/csv-bundle/Avro/CsvBundle/DependencyInjection/AvroCsvExtension.php line 27

Solution:

I added the addDefaultsIfNotSet method to the import array node so that the defined children are handled as defaults when no children are defined within the application.

@rubiodamian
Copy link

Finally!!
Thanks a lot!!!

jdewit added a commit that referenced this pull request Sep 2, 2012
Add default config nodes for import node by adding addDefaultsIfNotSet
@jdewit jdewit merged commit 496b0ae into jdewit:master Sep 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants