-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Created SeoAwareTrait #274
Conversation
trait SeoAwareTrait | ||
{ | ||
/** | ||
* @var SeoPageInterface|null |
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.
What about adding @required
it will try to autowire it.
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.
Didn't find any examples in the other traits.
Should you use autowiring when there is a setter method?
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.
why not? You can still set it yourself or let it be autowired. A better question is, should we autowire it at all, I think it is not a best practice for 3rd party bundles.
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.
Fixed it
Do we need to tweak the docs or add a cookbook article about it? |
Yes, people need to know about it so they can use it. |
Thanks @core23 ! |
I am targeting this branch, because this is a new feature.
Changelog
Subject
This trait can be used the same way as the
LoggerAwareTrait
,ContainerAwareTrait
, ...