-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[AdminBundle,GeneratorBundle,NodeBundle,UtilitiesBundle] Change slugifier into service #404
Conversation
woutervandamme
commented
May 12, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | #84 |
e264923
to
c7a24d5
Compare
@woutervandamme check the travis build failure |
@@ -296,7 +296,7 @@ public function createNodeTranslationFor(HasNodeInterface $hasNode, $lang, Node | |||
->setNode($node) | |||
->setLang($lang) | |||
->setTitle($hasNode->getTitle()) | |||
->setSlug(Slugifier::slugify($hasNode->getTitle(), '')) | |||
->setSlug($hasNode->getTitle(), '') |
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.
This is not correct
7ae7e88
to
a83d070
Compare
@@ -8,6 +8,18 @@ | |||
|
|||
class UtilitiesTwigExtension extends Twig_Extension | |||
{ | |||
/** | |||
* @var Slugifier |
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.
Use the interface here
5151a46
to
81e0ed2
Compare
@woutervandamme please rebase on top of master, thanks! |
added slugifier service to fixtures add slugifier service to NodeBundle updated slugifier tests inject slugifier into utilitiesTwigExtension twigExtension now works with the slugifier service removed @Covers in slugifierTest implemented slugifierInterface
81e0ed2
to
1541fce
Compare
code review: ok |
[AdminBundle,GeneratorBundle,NodeBundle,UtilitiesBundle] Change slugifier into service