Skip to content

Commit a48f8b2

Browse files
authored
Merge pull request #220 from symfony-cmf/wouterj-remove-slugifier
Removed the deprecated slugifier
2 parents e089668 + 276b23e commit a48f8b2

File tree

4 files changed

+44
-73
lines changed

4 files changed

+44
-73
lines changed

CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
Changelog
22
=========
33

4-
2.0.0 (unreleased)
5-
------------------
6-
7-
* **2016-12-03**: [BC BREAK] Moved sonata admin related classes and configuration to the CmfSonataAdminIntegrationBundle
4+
* **2017-01-13**: [BC BREAK] Removed the `Slugifier` classes and the
5+
dependency on `symfony-cmf/slugifier-api`.
6+
* **2016-12-03**: [BC BREAK] Moved sonata admin related classes and
7+
configuration to the CmfSonataAdminIntegrationBundle.
88
* **2016-06-19**: [BC BREAK] Removed second and third argument from `CmfHelper` constructor.
99
* **2016-06-19**: [BC BREAK] Removed `RequestAwarePass` class.
1010
* **2016-06-19**: [BC BREAK] Removed `TranslatableExtension` class and related
1111
`cmf_core.admin_extension.translatable` service.
1212
* **2016-06-18**: [BC BREAK] Removed all `*.class` parameters.
13-
* **2016-04-30**: [BC BREAK] Dropped PHP <5.5 support
14-
* **2016-04-30**: [BC BREAK] Dropped Symfony <2.8 support
1513
* **2016-04-30**: [BC BREAK] Dropped PHP <5.5 support.
1614
* **2016-04-30**: [BC BREAK] Dropped Symfony <2.8 support.
1715

UPGRADE-2.0.md

Lines changed: 39 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
UPGRADE FROM 1.x to 2.0
22
=======================
33

4+
### General
5+
6+
* The `RequestAwarePass` is removed. Use the `request_stack` service provided
7+
by Symfony instead.
8+
9+
* The Doctrine registry and manager name can no longer be passed through the
10+
constructor of `CmfHelper`, use the `setDoctrineRegistry()` method instead.
11+
412
### SonataAdmin Support
513

614
* The Admin extensions where moved into `symfony-cmf/sonata-admin-integration-bundle`.
@@ -10,35 +18,39 @@ UPGRADE FROM 1.x to 2.0
1018
Before:
1119

1220
```yaml
13-
# app/config/config.yml
14-
15-
sonata_admin:
16-
extensions:
17-
cmf_core.admin_extension.child:
18-
implements:
19-
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
20-
cmf_core.admin_extension.publish_workflow.time_period:
21-
implements:
22-
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
23-
cmf_core.admin_extension.publish_workflow.publishable:
24-
implements:
25-
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
21+
# app/config/config.yml
22+
sonata_admin:
23+
extensions:
24+
cmf_core.admin_extension.child:
25+
implements:
26+
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
27+
cmf_core.admin_extension.publish_workflow.time_period:
28+
implements:
29+
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
30+
cmf_core.admin_extension.publish_workflow.publishable:
31+
implements:
32+
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
2633
```
2734
28-
After:
35+
After:
2936
3037
```yaml
31-
# app/config/config.yml
32-
33-
sonata_admin:
34-
extensions:
35-
cmf_sonata_admin_integration.core.extension.child:
36-
implements:
37-
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
38-
cmf_sonata_admin_integration.core.extension.publish_workflow.time_period:
39-
implements:
40-
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
41-
cmf_sonata_admin_integration.core.extension.publish_workflow.publishable:
42-
implements:
43-
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
38+
# app/config/config.yml
39+
sonata_admin:
40+
extensions:
41+
cmf_sonata_admin_integration.core.extension.child:
42+
implements:
43+
- Symfony\Cmf\Bundle\CoreBundle\Model\ChildInterface
44+
cmf_sonata_admin_integration.core.extension.publish_workflow.time_period:
45+
implements:
46+
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishTimePeriodInterface
47+
cmf_sonata_admin_integration.core.extension.publish_workflow.publishable:
48+
implements:
49+
- Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishableInterface
4450
```
51+
52+
Slugifier
53+
---------
54+
55+
* The `Slugifier` namespace is removed, use the `symfony-cmf/slugifier-api`
56+
package and its interfaces instead.

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
],
1414
"require": {
1515
"php": "^5.5.9|^7.0",
16-
"symfony/framework-bundle": "^2.8|^3.0",
17-
"symfony-cmf/slugifier-api": "^1.0"
16+
"symfony/framework-bundle": "^2.8|^3.0"
1817
},
1918
"require-dev": {
2019
"symfony/security-bundle": "^2.8|^3.0",

tests/Unit/Slugifier/CallbackSlugifierTest.php

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

0 commit comments

Comments
 (0)