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 10f3926

Browse filesBrowse files
committed
Merge branch '2.0' into 2.1
2 parents 8560038 + 484399c commit 10f3926
Copy full SHA for 10f3926

File tree

Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed

‎components/console/single_command_tool.rst

Copy file name to clipboardExpand all lines: components/console/single_command_tool.rst
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ it is possible to remove this need by extending the application::
5858
}
5959
}
6060

61-
When calling your console script, the command `MyCommand` will then always
61+
When calling your console script, the command ``MyCommand`` will then always
6262
be used, without having to pass its name.
6363

6464
You can also simplify how you execute the application::
6565

6666
#!/usr/bin/env php
6767
<?php
6868
// command.php
69-
7069
use Acme\Tool\MyApplication;
7170

7271
$application = new MyApplication();

‎components/dependency_injection/configurators.rst

Copy file name to clipboardExpand all lines: components/dependency_injection/configurators.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ in the application::
7878
public function loadFormatters()
7979
{
8080
// code to configure which formatters to use
81-
$enabledFormatters = array();
81+
$enabledFormatters = array(...);
8282
// ...
8383

8484
$this->enabledFormatters = $enabledFormatters;

‎cookbook/form/use_empty_data.rst

Copy file name to clipboardExpand all lines: cookbook/form/use_empty_data.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ you form. For example::
1111

1212
public function indexAction()
1313
{
14-
$blog = // ...
14+
$blog = ...;
1515

1616
// $blog is passed in as the data, so the empty_data option is not needed
1717
$form = $this->createForm(new BlogType(), $blog);
@@ -35,8 +35,8 @@ that takes arguments. Remember, the default ``data_class`` option calls
3535
that constructor with no arguments::
3636

3737
// src/Acme/DemoBundle/Form/Type/BlogType.php
38-
// ...
3938

39+
// ...
4040
use Symfony\Component\Form\AbstractType;
4141
use Acme\DemoBundle\Entity\Blog;
4242
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

0 commit comments

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