Skip to content

Commit 2774693

Browse files
committed
Merge branch '2.1' into 2.2
2 parents e15ca16 + 10f3926 commit 2774693

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

components/console/single_command_tool.rst

Lines 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

Lines 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/configuration/web_server_configuration.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ are:
4141
``AllowOverride None`` and implement the rewrite rules in the ``web/.htaccess``
4242
into the virtualhost config.
4343

44+
If you are using **php-cgi**, Apache does not pass HTTP basic username and
45+
password to PHP by default. To work around this limitation, you should use the
46+
following configuration snippet:
47+
48+
.. code-block:: apache
49+
50+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
51+
4452
Nginx
4553
-----
4654

cookbook/form/dynamic_form_modification.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ your form::
607607
public function buildForm(FormBuilderInterface $builder, array $options)
608608
{
609609
// ...
610-
$subscriber = new AddNameFieldSubscriber($builder->getFormFactory());
611610
$builder->addEventSubscriber($this->registrationSportListener);
612611
}
613612

cookbook/form/use_empty_data.rst

Lines 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;

reference/constraints/All.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ entry in that array:
8282
$metadata->addPropertyConstraint('favoriteColors', new Assert\All(array(
8383
'constraints' => array(
8484
new Assert\NotBlank(),
85-
new Assert\Length(array('limit' => 5)),
85+
new Assert\Length(array('min' => 5)),
8686
),
8787
)));
8888
}

0 commit comments

Comments
 (0)