-
Notifications
You must be signed in to change notification settings - Fork 66
[Enhancer] create Content Repository Enhancer #168
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
Conversation
andrey1s
commented
Feb 26, 2016
| Q | A |
|---|---|
| Bug fix? | [no] |
| New feature? | [yes] |
| BC breaks? | [no] |
| Deprecations? | [no] |
| Tests pass? | [yes] |
| Fixed tickets | ~ |
| License | MIT |
| Doc PR | #745 |
| private $source; | ||
|
|
||
| /** | ||
| * ContentRepositoryEnhancer constructor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove this line, it does not say anything.
|
i think this makes sense when you have a database layer that does not provide you with relations to automatically load the content. can you please check where we can add this to the documentation? |
| use Symfony\Cmf\Component\Routing\RouteObjectInterface; | ||
| use Symfony\Component\HttpFoundation\Request; | ||
|
|
||
| class ContentRepositoryEnhancer implements RouteEnhancerInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a short description what this enhancer is doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add rules for the styleci.io?
| private $source; | ||
|
|
||
| /** | ||
| * @param ContentRepositoryInterface $contentRepository repository for the search content |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "repository to search for the content" is better?
|
I like this feature, it's a very effective and simple way to support content in ORM databases. |
|
i created symfony-cmf/routing-bundle#337 for the bundle. @andrey1s would you have time to work on this? |