Skip to content

Commit 58fdfc3

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: use .test instead of .dev as development domain Shortened command... easier to remember ;) Final updates Last fixes Restored the "Full Default Configuration" dump Fixed an indentation issue Simplified the framework configuration reference Added Doctrine entities and documents to the list of known locations for classes
2 parents c8ed63c + a04a412 commit 58fdfc3

File tree

3 files changed

+35
-30
lines changed

3 files changed

+35
-30
lines changed

bundles/best_practices.rst

+17-17
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ files are going to be part of the repository.
115115
The following classes and files have specific emplacements (some are mandatory
116116
and others are just conventions followed by most developers):
117117

118-
=============================== ============================= ================
119-
Type Directory Mandatory?
120-
=============================== ============================= ================
121-
Commands ``Command/`` Yes
122-
Controllers ``Controller/`` No
123-
Service Container Extensions ``DependencyInjection/`` Yes
124-
Event Listeners ``EventListener/`` No
125-
Model classes [1] ``Model/`` No
126-
Configuration ``Resources/config/`` No
127-
Web Resources (CSS, JS, images) ``Resources/public/`` Yes
128-
Translation files ``Resources/translations/`` Yes
129-
Templates ``Resources/views/`` Yes
130-
Unit and Functional Tests ``Tests/`` No
131-
=============================== ============================= ================
132-
133-
[1] See :doc:`/doctrine/mapping_model_classes` for how to handle the
134-
mapping with a compiler pass.
118+
=================================================== ========================================
119+
Type Directory
120+
=================================================== ========================================
121+
Commands ``Command/``
122+
Controllers ``Controller/``
123+
Service Container Extensions ``DependencyInjection/``
124+
Doctrine ORM entities (when not using annotations) ``Entity/``
125+
Doctrine ODM documents (when not using annotations) ``Document/``
126+
Event Listeners ``EventListener/``
127+
Configuration ``Resources/config/``
128+
Web Resources (CSS, JS, images) ``Resources/public/``
129+
Translation files ``Resources/translations/``
130+
Validation (when not using annotations) ``Resources/config/validation/``
131+
Serialization (when not using annotations) ``Resources/config/serialization/``
132+
Templates ``Resources/views/``
133+
Unit and Functional Tests ``Tests/``
134+
=================================================== ========================================
135135

136136
Classes
137137
-------

reference/configuration/framework.rst

+14-9
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
FrameworkBundle Configuration ("framework")
55
===========================================
66

7-
The FrameworkBundle contains most of the "base" framework functionality
8-
and can be configured under the ``framework`` key in your application
9-
configuration. When using XML, you must use the
10-
``http://symfony.com/schema/dic/symfony`` namespace.
7+
The FrameworkBundle defines the main framework configuration, from sessions and
8+
translations to forms, validation, routing and more. All these options are
9+
configured under the ``framework`` key in your application configuration.
1110

12-
This includes settings related to sessions, translation, forms, validation,
13-
routing and more.
11+
.. code-block:: terminal
1412
15-
.. tip::
13+
# displays the default config values defined by Symfony
14+
$ php bin/console config:dump framework
15+
16+
# displays the actual config values used by your application
17+
$ php bin/console debug:config framework
18+
19+
.. note::
1620

17-
The XSD schema is available at
18-
``http://symfony.com/schema/dic/symfony/symfony-1.0.xsd``.
21+
When using XML, you must use the ``http://symfony.com/schema/dic/symfony``
22+
namespace and the related XSD schema is available at:
23+
``http://symfony.com/schema/dic/symfony/symfony-1.0.xsd``
1924

2025
Configuration
2126
-------------

setup/homestead.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ configuration:
4848
4949
# ...
5050
sites:
51-
- map: symfony-demo.dev
51+
- map: symfony-demo.test
5252
to: /home/vagrant/projects/symfony_demo/web
5353
type: symfony
5454
5555
The ``type`` option tells Homestead to use the Symfony nginx configuration.
5656

57-
At last, edit the hosts file on your local machine to map ``symfony-demo.dev``
57+
At last, edit the hosts file on your local machine to map ``symfony-demo.test``
5858
to ``192.168.10.10`` (which is the IP used by Homestead)::
5959

6060
# /etc/hosts (unix) or C:\Windows\System32\drivers\etc\hosts (Windows)
61-
192.168.10.10 symfony-demo.dev
61+
192.168.10.10 symfony-demo.test
6262

63-
Now, navigate to ``http://symfony-demo.dev`` in your web browser and enjoy
63+
Now, navigate to ``http://symfony-demo.test`` in your web browser and enjoy
6464
developing your Symfony application!
6565

6666
.. seealso::

0 commit comments

Comments
 (0)