Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 455cd00

Browse filesBrowse files
committed
Merge remote-tracking branch 'origin/2.0' into 2.0
2 parents 7d5ea3e + 30de3c8 commit 455cd00
Copy full SHA for 455cd00

File tree

Expand file treeCollapse file tree

4 files changed

+7
-6
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+7
-6
lines changed

‎book/forms.rst

Copy file name to clipboardExpand all lines: book/forms.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ the correct values of a number of field options.
523523
And though you'll need to manually add your server-side validation, these
524524
field type options can then be guessed from that information.
525525

526-
* ``required``: The ``required`` option can be guessed based off of the validation
526+
* ``required``: The ``required`` option can be guessed based on the validation
527527
rules (i.e. is the field ``NotBlank`` or ``NotNull``) or the Doctrine metadata
528528
(i.e. is the field ``nullable``). This is very useful, as your client-side
529529
validation will automatically match your validation rules.

‎book/page_creation.rst

Copy file name to clipboardExpand all lines: book/page_creation.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ that controller.
203203

204204
The controller - ``AcmeHelloBundle:Hello:index`` is the *logical* name of
205205
the controller, and it maps to the ``indexAction`` method of a PHP class
206-
called ``Acme\HelloBundle\Controller\Hello``. Start by creating this file
206+
called ``Acme\HelloBundle\Controller\HelloController``. Start by creating this file
207207
inside your ``AcmeHelloBundle``::
208208

209209
// src/Acme/HelloBundle/Controller/HelloController.php
@@ -274,7 +274,7 @@ An optional, but common, third step in the process is to create a template.
274274
Optional Step 3: Create the Template
275275
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
276276

277-
Templates allows you to move all of the presentation (e.g. HTML code) into
277+
Templates allow you to move all of the presentation (e.g. HTML code) into
278278
a separate file and reuse different portions of the page layout. Instead
279279
of writing the HTML inside the controller, render a template instead:
280280

@@ -993,4 +993,4 @@ to rapidly develop applications.
993993
.. _`third-party bundles`: http://symfony2bundles.org/
994994
.. _`Symfony Standard Edition`: http://symfony.com/download
995995
.. _`Apache's DirectoryIndex documentation`: http://httpd.apache.org/docs/2.0/mod/mod_dir.html
996-
.. _`Nginx HttpCoreModule location documentation`: http://wiki.nginx.org/HttpCoreModule#location
996+
.. _`Nginx HttpCoreModule location documentation`: http://wiki.nginx.org/HttpCoreModule#location

‎book/validation.rst

Copy file name to clipboardExpand all lines: book/validation.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ workflow looks like the following from inside a controller::
221221

222222
public function updateAction(Request $request)
223223
{
224-
$author = new Acme\BlogBundle\Entity\Author();
224+
$author = new Author();
225225
$form = $this->createForm(new AuthorType(), $author);
226226

227227
if ($request->getMethod() == 'POST') {

‎cookbook/security/acl.rst

Copy file name to clipboardExpand all lines: cookbook/security/acl.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ added above:
199199

200200
.. code-block:: php
201201
202-
$acl->insertObjectAce(new UserSecurityIdentity('johannes'), $mask);
202+
$identity = new UserSecurityIdentity('johannes', 'Acme\UserBundle\Entity\User');
203+
$acl->insertObjectAce($identity, $mask);
203204
204205
The user is now allowed to view, edit, delete, and un-delete objects.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.