You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/symfony1.rst
+31-6Lines changed: 31 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Symfony2 for symfony 1 users
5
5
Create a new project
6
6
--------------------
7
7
8
-
In a symfony 1 environment, to create a new project, you used the global "symfony" executable, or the one contained in the data/bin folder of the symfony1 source:
8
+
In a symfony 1 environment, to create a new project, you use the global "symfony" executable, or the one contained in the data/bin folder of the symfony1 source:
9
9
10
10
.. code-block::
11
11
@@ -14,16 +14,24 @@ In a symfony 1 environment, to create a new project, you used the global "symfon
And then use it to create your project. Note that the default format for configuration files is now ```xml```, so if you want to keep the ```yml``` format to which you are used to in symfony 1, you need to specifiy it:
and you will have to link all external libraries yourself:
34
+
Finally you now have multiple external libraries to include in your project. To avoid downloading them for every new project, you can use a symbolic link:
27
35
28
36
.. code-block::
29
37
@@ -34,7 +42,7 @@ and you will have to link all external libraries yourself:
34
42
Use the console
35
43
---------------
36
44
37
-
In symfony 1, the console was directly in the base directory and was called ```symfony```:
45
+
In symfony 1, the console is directly in the base directory and is called ```symfony```:
38
46
39
47
.. code-block::
40
48
@@ -65,4 +73,21 @@ different semantic configurations, separate routing configurations, and so on.
65
73
.. tip::
66
74
67
75
Read the definition of a :term:`Project`, an :term:`Application`, and a
68
-
:term:`Bundle` in the glossary.
76
+
:term:`Bundle` in the glossary.
77
+
78
+
79
+
80
+
Bundles
81
+
-------
82
+
83
+
In a symfony 1 project, you usually have multiple modules inside your application. A module is a coherent set of controllers and templates.
84
+
85
+
In a Symfony2 project, you replace the concept of modules with Bundles.
86
+
87
+
88
+
Plugins
89
+
-------
90
+
91
+
In a symfony 1 project, you usually download a lot of useful plugins to reuse the many functionalities developed by the community.
92
+
93
+
In a Symfony2 project, you download Bundles. There are not many differences between the "module" Bundles and the "plugin" Bundles, except that a "plugin" Bundle usually contains multiple "module" Bundles using the "category namespace".
0 commit comments