Skip to content

Commit 4e93eb5

Browse files
committed
Added an article to explain how to upgrade third-party bundles to Symfony 3
1 parent ea2503c commit 4e93eb5

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

cookbook/map.rst.inc

+1
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
* :doc:`/cookbook/upgrade/patch_version`
228228
* :doc:`/cookbook/upgrade/minor_version`
229229
* :doc:`/cookbook/upgrade/major_version`
230+
* :doc:`/cookbook/upgrade/bundles`
230231

231232
* :doc:`/cookbook/validation/index`
232233

cookbook/upgrade/bundles.rst

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. index::
2+
single: Upgrading; Bundle; Major Version
3+
4+
Upgrading a Third-Party Bundle for a Major Symfony Version
5+
==========================================================
6+
7+
Symfony 3 was released on November 2015. Although this version doesn't contain
8+
any new feature, it removes all the backwards compatibility layers included in
9+
the previous 2.8 version. If your bundle uses any deprecated feature and it's
10+
published as a third-party bundle, applications upgrading to Symfony 3 will no
11+
longer be able to use it.
12+
13+
Allow to Install Symfony 3 Components
14+
-------------------------------------
15+
16+
.. TODO
17+
18+
* Change symfony/... ~2.N by ~2.N|~3.M
19+
20+
Look for Deprecations and Fix Them
21+
----------------------------------
22+
23+
.. TODO
24+
25+
* Install: composer require --dev "symfony/phpunit-bridge" and run your test suite
26+
* Use for basic fixes: https://github.com/umpirsky/Symfony-Upgrade-Fixer
27+
* Read the "UPGRADE from 2.x to Sf3" guide (https://github.com/symfony/symfony/blob/2.8/UPGRADE-3.0.md)
28+
29+
Test your Bundle in Symfony 3
30+
-----------------------------
31+
32+
.. TODO
33+
34+
* Upgrade a test app to Sf3 or create an empty app (symfony new my_app 3.0)
35+
* Use the "ln -s my_bundle vendor/.../my_bundle" trick to use the new code in the 3.0 app
36+
* Configure Travis CI to test your bundle in both 2 and 3 versions.

cookbook/upgrade/index.rst

+1
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ There are three types of upgrades, all needing a little different preparation:
1616
/cookbook/upgrade/patch_version
1717
/cookbook/upgrade/minor_version
1818
/cookbook/upgrade/major_version
19+
/cookbook/upgrade/bundles

0 commit comments

Comments
 (0)