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

Unable to use Resource identifier for directories path in confing.yml #26

Closed
ftassi opened this issue Sep 9, 2011 · 1 comment
Closed

Comments

@ftassi
Copy link
Contributor

ftassi commented Sep 9, 2011

Hi,
I'm trying to define custom directory for serializer metadata, but I'm not able to define a resource for "path" key.

Using resource identifier as documented file locator is unable to convert it to a valid path.

This configuration wont work:

directories:
        any-name:
            namespace_prefix: My\FooBundle
            path: @MyFooBundle/Resources/config/serializer

And this will:

directories:
        any-name:
            namespace_prefix: My\FooBundle
            path: %kernel.root_dir%/../src/My/FooBundle/Resources/config/serializer

I think that Metadata\Driver\FileLocator is not able to convert @MyFooBundle/Resources/config/serializer in src/My/FooBundle/Resources/config/serializer.
Maybe the bundle should use Symfony\Component\HttpKernel\Config\FileLocator ?
Is simply a documentation error ?

@schmittjoh
Copy link
Owner

Thanks for reporting, this is fixed now.

schmittjoh added a commit that referenced this issue Sep 12, 2011
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

No branches or pull requests

2 participants