Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5124dcd

Browse files
author
Fabrice Bernhard
committed
First steps contributing to symfony 1 to Symfony2 documentation
1 parent ee3ba84 commit 5124dcd

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

guides/symfony1.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
Symfony2 for symfony 1 users
22
============================
33

4+
5+
Create a new project
6+
--------------------
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:
9+
10+
.. code-block::
11+
12+
svn checkout http://svn.symfony-project.com/branches/1.4/ symfony1
13+
mkdir mynewproject
14+
cd mynewproject
15+
php ../symfony1/data/bin/symfony generate:project mynewproject
16+
17+
In Symfony2, to create a new project you need to use the symfony bootstrapper:
18+
19+
.. code-block::
20+
21+
git clone git://github.com/symfony/symfony-bootstrapper.git
22+
mkdir mynewproject
23+
cd mynewproject
24+
php ../symfony-bootstrapper/symfony.phar init --name=mynewproject
25+
26+
and you will have to link all external libraries yourself:
27+
28+
.. code-block::
29+
30+
ln -s ../../symfony-bootstrapper/src/vendor src/vendor
31+
32+
33+
34+
Use the console
35+
---------------
36+
37+
In symfony 1, the console was directly in the base directory and was called ```symfony```:
38+
39+
.. code-block::
40+
41+
php symfony
42+
43+
In Symfony2, the console is now in the app sub-directory and is called ```console```:
44+
45+
.. code-block::
46+
47+
php app/console
48+
49+
450
Applications
551
------------
652

0 commit comments

Comments
 (0)