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

Relative resource paths in routing files #517

Closed
marapper opened this issue Jun 6, 2015 · 3 comments
Closed

Relative resource paths in routing files #517

marapper opened this issue Jun 6, 2015 · 3 comments
Labels

Comments

@marapper
Copy link

marapper commented Jun 6, 2015

Fastjump and suggest for relative path doesn't work if we include another routing file:

# routing.yml
info_monitoring:
    prefix: /some/
    resource: routing_info.yml

or

# routing.yml
info_monitoring:
    prefix: /some/
    resource: 'routing_info.yml'

But this works fine:

info_monitoring2:
    prefix: /some/
    resource: @SomeBundle/Resources/config/routing_info.yml
@marapper
Copy link
Author

marapper commented Jun 8, 2015

Same story for relative path in import. No suggest, no click to jump.

# yml
imports:
    - { resource: '../common/config.yml' }
    - { resource: 'parameters.yml' }
    - { resource: 'security.yml' }
# xml
<imports>
        <import resource="repositories.xml"/>
        <import resource="health_checkers.xml"/>
        <import resource="web.xml"/>
    </imports>

See http://symfony.com/doc/current/cookbook/configuration/configuration_organization.html

@Haehnchen
Copy link
Owner

done

@marapper
Copy link
Author

Thanks

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

No branches or pull requests

2 participants