Skip to content

Commit 1506834

Browse files
author
gary houbre
committed
Fix error from DoctorRst
1 parent 5fc81d0 commit 1506834

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

controller/error_pages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ JSON/XML/CSV/YAML encoders. When your application throws an exception, Symfony
208208
can output it in one of those formats. If you want to change the output
209209
contents, create a new Normalizer that supports the ``FlattenException`` input::
210210

211-
# src/App/Serializer/MyCustomProblemNormalizer.php
211+
# src/Serializer/MyCustomProblemNormalizer.php
212212
namespace App\Serializer;
213213

214214
use Symfony\Component\ErrorHandler\Exception\FlattenException;

doctrine/resolve_target_entity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ about the replacement:
140140
.. code-block:: php
141141
142142
// config/packages/doctrine.php
143-
use App\Model\InvoiceSubjectInterface;
144143
use App\Entity\Customer;
144+
use App\Model\InvoiceSubjectInterface;
145145
146146
$container->loadFromExtension('doctrine', [
147147
'orm' => [

form/type_guesser.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ The ``TypeGuess`` constructor requires three options:
8282
With this knowledge, you can implement the ``guessType()`` method of the
8383
``PHPDocTypeGuesser``::
8484

85+
// src/Form/TypeGuesser/PHPDocTypeGuesser.php
8586
namespace App\Form\TypeGuesser;
8687

8788
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
@@ -221,7 +222,7 @@ and tag it with ``form.type_guesser``:
221222
:method:`Symfony\\Component\\Form\\FormFactoryBuilder::addTypeGuessers` of
222223
the ``FormFactoryBuilder`` to register new type guessers::
223224

224-
use Acme\Form\PHPDocTypeGuesser;
225+
use App\Form\TypeGuesser\PHPDocTypeGuesser;
225226
use Symfony\Component\Form\Forms;
226227

227228
$formFactory = Forms::createFormFactoryBuilder()

0 commit comments

Comments
 (0)