Skip to content

Commit d156bfc

Browse files
committed
Merge branch '4.1'
* 4.1: Removed the Action suffix in controller methods Update form_login_setup.rst [Form][Validation] User $user instead of $users fix server status and stop command descriptions Added 'Default' validation group Update Callback.rst [Encore] unify the name of app file
2 parents 71f96f1 + f9db2a5 commit d156bfc

File tree

6 files changed

+11
-21
lines changed

6 files changed

+11
-21
lines changed

form/validation_groups.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Validation Groups
1010
If your object takes advantage of :doc:`validation groups </validation/groups>`,
1111
you'll need to specify which validation group(s) your form should use::
1212

13-
$form = $this->createFormBuilder($users, array(
13+
$form = $this->createFormBuilder($user, array(
1414
'validation_groups' => array('registration'),
1515
))->add(...);
1616

@@ -28,4 +28,7 @@ method::
2828
}
2929

3030
In both of these cases, *only* the ``registration`` validation group will
31-
be used to validate the underlying object.
31+
be used to validate the underlying object. To apply the ``registration``
32+
group *and* all constraints that are not in a group, use::
33+
34+
'validation_groups' => array('Default', 'registration')

frontend/encore/advanced-config.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ state of the current configuration to build a new one:
5353
Encore
5454
.setOutputPath('public/build/')
5555
.setPublicPath('/build')
56-
.addEntry('app', './assets/js/main.js')
56+
.addEntry('app', './assets/js/app.js')
5757
.addStyleEntry('global', './assets/css/global.scss')
5858
.enableSassLoader()
5959
.autoProvidejQuery()

frontend/encore/page-specific-assets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ a new ``checkout`` entry:
1414
1515
Encore
1616
// an existing entry
17-
.addEntry('app', './assets/js/main.js')
17+
.addEntry('app', './assets/js/app.js')
1818
// a global styles entry
1919
.addStyleEntry('global', './assets/css/global.scss')
2020

frontend/encore/shared-entry.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Update your code to use ``createSharedEntry()``:
1313
1414
Encore
1515
// ...
16-
- .addEntry('app', 'assets/js/app.js')
17-
+ .createSharedEntry('app', 'assets/js/app.js')
16+
- .addEntry('app', './assets/js/app.js')
17+
+ .createSharedEntry('app', './assets/js/app.js')
1818
.addEntry('homepage', './assets/js/homepage.js')
1919
.addEntry('blog', './assets/js/blog.js')
2020
.addEntry('store', './assets/js/store.js')

reference/constraints/Callback.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Concrete callbacks receive an :class:`Symfony\\Component\\Validator\\Context\\Ex
272272
instance as only argument.
273273

274274
Static or closure callbacks receive the validated object as the first argument
275-
and the :class:`Symfony\\Component\\Validator\\ExecutionContextInterface`
275+
and the :class:`Symfony\\Component\\Validator\\Context\\ExecutionContextInterface`
276276
instance as the second argument.
277277

278278
.. include:: /reference/constraints/_payload-option.rst.inc

setup/built_in_web_server.rst

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,12 @@ can change the socket passing an IP address and a port as a command-line argumen
5656
.. note::
5757

5858
You can use the ``server:status`` command to check if a web server is
59-
listening on a certain socket:
59+
listening:
6060

6161
.. code-block:: terminal
6262
6363
$ php bin/console server:status
6464
65-
$ php bin/console server:status 192.168.0.1:8080
66-
67-
The first command shows if your Symfony application will be served through
68-
``localhost:8000``, the second one does the same for ``192.168.0.1:8080``.
69-
7065
.. tip::
7166

7267
Some systems do not support the ``server:start`` command, in these cases
@@ -121,13 +116,5 @@ command:
121116
122117
$ php bin/console server:stop
123118
124-
Like with the start command, if you omit the socket information, Symfony will
125-
stop the web server bound to ``localhost:8000``. Just pass the socket information
126-
when the web server listens to another IP address or to another port:
127-
128-
.. code-block:: terminal
129-
130-
$ php bin/console server:stop 192.168.0.1:8080
131-
132119
.. _`built-in web server`: https://php.net/manual/en/features.commandline.webserver.php
133120
.. _`php.net`: https://php.net/manual/en/features.commandline.webserver.php#example-411

0 commit comments

Comments
 (0)