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

Support dot notation for resources in symfony flex #1776

Merged
merged 1 commit into from
Nov 24, 2017
Merged

Support dot notation for resources in symfony flex #1776

merged 1 commit into from
Nov 24, 2017

Conversation

tomaszhanc
Copy link
Contributor

Symfony Flex introduced a new notation for routes resources:

controllers:
    resource: "../src/Controller"

The current implementation of DirecotryRouteLoader supports only @ notation to locate a resource by file locator. That PR fix it for Symfony Flex notation.

@juliusstoerrle
Copy link

I pulled this PR and it solved my issues with the loader, i do now have a ServiceNotFoundException

The "fos_rest.view_handler" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.

But I do not think its related to this pull request, but more of a new issue with the private services by default, is anybody working on that currently?

@xabbuh
Copy link
Member

xabbuh commented Nov 20, 2017

@juliusstoerrle Feel free to propose a PR.

@juliusstoerrle
Copy link

@xabbuh see issue #1790

Is there a roadmap for SF4 Combatibility and what needs to happen for this PR to be merged?

@juliusstoerrle
Copy link

Can this please be merged!

@xabbuh
Copy link
Member

xabbuh commented Nov 24, 2017

Thank you @tomaszhanc.

@xabbuh xabbuh merged commit ba79b41 into FriendsOfSymfony:master Nov 24, 2017
xabbuh added a commit that referenced this pull request Nov 24, 2017
…zhanc)

This PR was merged into the 2.2-dev branch.

Discussion
----------

Support dot notation for resources in symfony flex

Symfony Flex introduced a new notation for routes resources:

```
controllers:
    resource: "../src/Controller"
```

The current implementation of `DirecotryRouteLoader` supports only @ notation to locate a resource by file locator. That PR fix it for Symfony Flex notation.

Commits
-------

ba79b41 Support dot notation for resources in symfony flex
xabbuh added a commit that referenced this pull request Nov 28, 2017
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.

3 participants