Skip to content
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

Merged
merged 1 commit into from
May 26, 2015

Conversation

woutervandamme
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets #84

@krispypen
Copy link
Contributor

@woutervandamme check the travis build failure
also create a SlugifierInterface and add information then how to create your own slugifier (by extending the default one or implementing the interface)

@@ -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(), '')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct

@woutervandamme woutervandamme force-pushed the feature/slugifier branch 4 times, most recently from 7ae7e88 to a83d070 Compare May 13, 2015 09:29
@@ -8,6 +8,18 @@

class UtilitiesTwigExtension extends Twig_Extension
{
/**
* @var Slugifier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the interface here

@roderik
Copy link
Contributor

roderik commented May 26, 2015

@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
@krispypen
Copy link
Contributor

code review: ok

roderik pushed a commit that referenced this pull request May 26, 2015
[AdminBundle,GeneratorBundle,NodeBundle,UtilitiesBundle] Change slugifier into service
@roderik roderik merged commit 92ebd88 into Kunstmaan:master May 26, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants