Skip to content

Commit c074a62

Browse files
committed
Merge pull request #185 from symfony-cmf/issue_165
Move slugifier to its own package
2 parents 64f9d83 + c18a7d1 commit c074a62

File tree

5 files changed

+7
-71
lines changed

5 files changed

+7
-71
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Changelog
22
=========
33

4+
* **2016-02-01**: The class and interface in the `Slugifier` namespace are deprecated in favor of the `symfony-cmf/slugifier-api` package.
45
* **2016-01-24**: The `TranslatableExtension` and `cmf_core.admin_extension.translatable` services are deprecated in favor of the SonataTranslationBundle
56
* **2015-04-12**: [BC BREAK] The following services were made private: `cmf_core.admin_extension.child`, `cmf_core.security.publishable_voter`, `cmf_core.security.publish_time_period_voter`, `cmf_core.security.published_voter`, `cmf_core.admin_extension.publish_workflow.publishable`, `cmf_core.admin_extension.publish_workflow.time_period`, `cmf_core.twig.children_extension`, `cmf_core.templating.helper`, `cmf_core.persistence.phpcr.non_translatable_metadata_listener`, `cmf_core.persistence.phpcr.translatable_metadata_listener`, `cmf_core.admin_extension.translatable`
67
* **2015-04-12**: The following services could not be private, but should be considered as such: `cmf_core.publish_workflow.request_listener`, `cmf_core.form.type.checkbox_url_label`

Slugifier/CallbackSlugifier.php

Lines changed: 0 additions & 40 deletions
This file was deleted.

Slugifier/SlugifierInterface.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

Tests/Unit/Slugifier/CallbackSlugifierTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@
1313

1414
use Symfony\Cmf\Bundle\CoreBundle\Slugifier\CallbackSlugifier;
1515

16+
/**
17+
* @group legacy
18+
*/
1619
class CallbackSlugifierTest extends \PHPUnit_Framework_TestCase
1720
{
1821
public function setUp()
1922
{
2023
$this->slugifier = new CallbackSlugifier(
21-
'Symfony\Cmf\Bundle\CoreBundle\Tests\Unit\Slugifier\CallbackSlugifierTest::slugify'
24+
__CLASS__.'::slugify'
2225
);
2326
}
2427

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
],
1414
"require": {
1515
"php": "^5.3.9|^7.0",
16-
"symfony/framework-bundle": "^2.3"
16+
"symfony/framework-bundle": "^2.3",
17+
"symfony-cmf/slugifier-api": "^1.0@dev"
1718
},
1819
"require-dev": {
1920
"symfony/security-bundle": "^2.1",

0 commit comments

Comments
 (0)