File tree 5 files changed +19
-19
lines changed
5 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -44,21 +44,21 @@ Configuring the Database
44
44
45
45
Before you really begin, you'll need to configure your database connection
46
46
information. By convention, this information is usually configured in an
47
- ``app/config/parameters.ini `` file:
47
+ ``app/config/parameters.yml `` file:
48
48
49
49
.. code-block :: ini
50
50
51
- ; app/config/parameters.ini
52
- [ parameters]
53
- database_driver = pdo_mysql
54
- database_host = localhost
55
- database_name = test_project
56
- database_user = root
57
- database_password = password
51
+ ; app/config/parameters.yml
52
+ parameters:
53
+ database_driver: pdo_mysql
54
+ database_host: localhost
55
+ database_name: test_project
56
+ database_user: root
57
+ database_password: password
58
58
59
59
.. note ::
60
60
61
- Defining the configuration via ``parameters.ini `` is just a convention.
61
+ Defining the configuration via ``parameters.yml `` is just a convention.
62
62
The parameters defined in that file are referenced by the main configuration
63
63
file when setting up Doctrine:
64
64
Original file line number Diff line number Diff line change @@ -721,7 +721,7 @@ format you prefer:
721
721
722
722
# app/config/config.yml
723
723
imports :
724
- - { resource: parameters.ini }
724
+ - { resource: parameters.yml }
725
725
- { resource: security.yml }
726
726
727
727
framework :
@@ -747,7 +747,7 @@ format you prefer:
747
747
748
748
<!-- app/config/config.xml -->
749
749
<imports >
750
- <import resource =" parameters.ini " />
750
+ <import resource =" parameters.yml " />
751
751
<import resource =" security.yml" />
752
752
</imports >
753
753
@@ -769,7 +769,7 @@ format you prefer:
769
769
770
770
.. code-block :: php
771
771
772
- $this->import('parameters.ini ');
772
+ $this->import('parameters.yml ');
773
773
$this->import('security.yml');
774
774
775
775
$container->loadFromExtension('framework', array(
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ to a post record thanks to a foreign key constraint.
47
47
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
48
48
49
49
Before diving into the recipe, be sure your database connection parameters are
50
- correctly setup in the ``app/config/parameters.ini `` file (or wherever your
50
+ correctly setup in the ``app/config/parameters.yml `` file (or wherever your
51
51
database configuration is kept) and that you have initialized a bundle that
52
52
will host your future entity class. In this tutorial, we will assume that
53
53
an ``AcmeBlogBundle `` exists and is located under the ``src/Acme/BlogBundle ``
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ git repository:
33
33
/app/cache/*
34
34
/app/logs/*
35
35
/vendor/
36
- /app/config/parameters.ini
36
+ /app/config/parameters.yml
37
37
38
- 4. Copy ``app/config/parameters.ini `` to ``app/config/parameters.ini .dist ``.
39
- The ``parameters.ini `` file is ignored by git (see above) so that machine-specific
40
- settings like database passwords aren't committed. By creating the ``parameters.ini .dist ``
38
+ 4. Copy ``app/config/parameters.yml `` to ``app/config/parameters.yml .dist ``.
39
+ The ``parameters.yml `` file is ignored by git (see above) so that machine-specific
40
+ settings like database passwords aren't committed. By creating the ``parameters.yml .dist ``
41
41
file, new developers can quickly clone the project, copy this file to
42
- ``parameters.ini ``, customize it, and start developing.
42
+ ``parameters.yml ``, customize it, and start developing.
43
43
44
44
5. Initialize your git repository:
45
45
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ PHP. Have a look at the default configuration:
163
163
164
164
# app/config/config.yml
165
165
imports :
166
- - { resource: parameters.ini }
166
+ - { resource: parameters.yml }
167
167
- { resource: security.yml }
168
168
169
169
framework :
You can’t perform that action at this time.
0 commit comments