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

Problem with working directory in Symfony Flex #1775

Closed
tomaszhanc opened this issue Oct 19, 2017 · 1 comment
Closed

Problem with working directory in Symfony Flex #1775

tomaszhanc opened this issue Oct 19, 2017 · 1 comment

Comments

@tomaszhanc
Copy link
Contributor

tomaszhanc commented Oct 19, 2017

I'm trying to play with a Symfony Flex and have a problem with RouteLoader. My configuration for a routing:

controllers:
    resource: '../src/Controller'
    type: rest

Everything is OK in the browser and when I run console from bin directory. But when running console from the root directory (bin/console) there is a problem with a loader. The reason is a different working directory and DirectoryRouteLoader returns false for:

return is_dir($resource);

For non-flex Symfony is working, because there is a different notation for a resource (bundle-notation).

@tomaszhanc tomaszhanc changed the title Problem with working directories in Symfony Flex Problem with working directory in Symfony Flex Oct 20, 2017
@tomaszhanc
Copy link
Contributor Author

FIxed in #1776

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

1 participant