Skip to content

Commit c4f9bf1

Browse files
author
gary houbre
committed
Fix Missing Wording
1 parent 707580e commit c4f9bf1

17 files changed

+85
-85
lines changed

deployment/fortrabbit.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Deploying to fortrabbit
99
For details on deploying to fortrabbit, see their official documentation:
1010
`Install Symfony`_
1111

12-
.. _`Install Symfony`: https://help.fortrabbit.com/install-symfony-3-uni
12+
.. _`Install Symfony`: https://help.fortrabbit.com/install-symfony-5-uni

doctrine/associations.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ What about *removing* a ``Product`` from a ``Category``? The ``make:entity`` com
548548
also generated a ``removeProduct()`` method::
549549

550550
// src/Entity/Category.php
551+
namespace App\Entity;
551552

552553
// ...
553554
class Category

doctrine/events.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ define a callback for the ``prePersist`` Doctrine event:
5656
.. code-block:: php-annotations
5757
5858
// src/Entity/Product.php
59+
namespace App\Entity;
60+
5961
use Doctrine\ORM\Mapping as ORM;
6062
6163
// When using annotations, don't forget to add @ORM\HasLifecycleCallbacks()

doctrine/multiple_entity_managers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ When working with multiple entity managers to generate migrations:
236236
If you *do* omit the entity manager's name when asking for it,
237237
the default entity manager (i.e. ``default``) is returned::
238238

239+
// src/Controller/UserController.php
240+
namespace App\Controller;
241+
239242
// ...
240243

241244
use Doctrine\ORM\EntityManagerInterface;
@@ -262,6 +265,9 @@ entity manager to persist and fetch its entities.
262265

263266
The same applies to repository calls::
264267

268+
// src/Controller/UserController.php
269+
namespace App\Controller;
270+
265271
use AcmeStoreBundle\Entity\Customer;
266272
use AcmeStoreBundle\Entity\Product;
267273
// ...

doctrine/resolve_target_entity.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ A Customer entity::
4242
// src/Entity/Customer.php
4343
namespace App\Entity;
4444

45-
use Acme\CustomerBundle\Entity\Customer as BaseCustomer;
46-
use Acme\InvoiceBundle\Model\InvoiceSubjectInterface;
45+
use App\Entity\CustomerInterface as BaseCustomer;
46+
use App\Model\InvoiceSubjectInterface;
4747
use Doctrine\ORM\Mapping as ORM;
4848

4949
/**
@@ -58,10 +58,10 @@ A Customer entity::
5858

5959
An Invoice entity::
6060

61-
// src/Acme/InvoiceBundle/Entity/Invoice.php
62-
namespace Acme\InvoiceBundle\Entity;
61+
// src/Entity/Invoice.php
62+
namespace App\Entity;
6363

64-
use Acme\InvoiceBundle\Model\InvoiceSubjectInterface;
64+
use App\Model\InvoiceSubjectInterface;
6565
use Doctrine\ORM\Mapping as ORM;
6666

6767
/**
@@ -73,16 +73,16 @@ An Invoice entity::
7373
class Invoice
7474
{
7575
/**
76-
* @ORM\ManyToOne(targetEntity="Acme\InvoiceBundle\Model\InvoiceSubjectInterface")
76+
* @ORM\ManyToOne(targetEntity="App\Model\InvoiceSubjectInterface")
7777
* @var InvoiceSubjectInterface
7878
*/
7979
protected $subject;
8080
}
8181

8282
An InvoiceSubjectInterface::
8383

84-
// src/Acme/InvoiceBundle/Model/InvoiceSubjectInterface.php
85-
namespace Acme\InvoiceBundle\Model;
84+
// src/Model/InvoiceSubjectInterface.php
85+
namespace App\Model;
8686

8787
/**
8888
* An interface that the invoice Subject object should implement.
@@ -115,7 +115,7 @@ about the replacement:
115115
orm:
116116
# ...
117117
resolve_target_entities:
118-
Acme\InvoiceBundle\Model\InvoiceSubjectInterface: App\Entity\Customer
118+
App\Model\InvoiceSubjectInterface: App\Entity\Customer
119119
120120
.. code-block:: xml
121121
@@ -132,15 +132,15 @@ about the replacement:
132132
<doctrine:config>
133133
<doctrine:orm>
134134
<!-- ... -->
135-
<doctrine:resolve-target-entity interface="Acme\InvoiceBundle\Model\InvoiceSubjectInterface">App\Entity\Customer</doctrine:resolve-target-entity>
135+
<doctrine:resolve-target-entity interface="App\Model\InvoiceSubjectInterface">App\Entity\Customer</doctrine:resolve-target-entity>
136136
</doctrine:orm>
137137
</doctrine:config>
138138
</container>
139139
140140
.. code-block:: php
141141
142142
// config/packages/doctrine.php
143-
use Acme\InvoiceBundle\Model\InvoiceSubjectInterface;
143+
use App\Model\InvoiceSubjectInterface;
144144
use App\Entity\Customer;
145145
146146
$container->loadFromExtension('doctrine', [

form/create_custom_field_type.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ to define, validate and process their values::
287287
Now you can configure these options when using the form type::
288288

289289
// src/Form/Type/OrderType.php
290+
namespace App\Form\Type;
291+
290292
// ...
291293

292294
class OrderType extends AbstractType
@@ -310,6 +312,8 @@ Now you can configure these options when using the form type::
310312
The last step is to use these options when building the form::
311313

312314
// src/Form/Type/PostalAddressType.php
315+
namespace App\Form\Type;
316+
313317
// ...
314318

315319
class PostalAddressType extends AbstractType
@@ -447,6 +451,8 @@ defined by the form or be completely independent::
447451

448452

449453
// src/Form/Type/PostalAddressType.php
454+
namespace App\Form\Type;
455+
450456
use Doctrine\ORM\EntityManagerInterface;
451457
// ...
452458

form/create_form_type_extension.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ may not be applied to it.
251251
Another option is to return multiple form types in the ``getExtendedTypes()``
252252
method to extend all of them::
253253

254+
// src/Form/Extension/DateTimeExtension.php
255+
namespace App\Form\Extension;
254256
// ...
255257
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
256258
use Symfony\Component\Form\Extension\Core\Type\DateType;

form/dynamic_form_modification.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ Now that you have all the basics in place you can use the features of the
255255
security helper to fill in the listener logic::
256256

257257
// src/Form/Type/FriendMessageFormType.php
258+
namespace App\Form\Type;
259+
258260
use App\Entity\User;
259261
use Doctrine\ORM\EntityRepository;
260262
use Symfony\Bridge\Doctrine\Form\Type\EntityType;

form/inherit_data_option.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ access the properties of the ``Customer`` instance instead. Convenient, eh?
126126
Finally, make this work by adding the location form to your two original forms::
127127

128128
// src/Form/Type/CompanyType.php
129+
namespace App\Form\Type;
130+
129131
use App\Entity\Company;
130132
// ...
131133

@@ -141,6 +143,8 @@ Finally, make this work by adding the location form to your two original forms::
141143
.. code-block:: php
142144
143145
// src/Form/Type/CustomerType.php
146+
namespace App\Form\Type;
147+
144148
use App\Entity\Customer;
145149
// ...
146150

form/use_empty_data.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ that takes arguments. Remember, the default ``data_class`` option calls
4444
that constructor with no arguments::
4545

4646
// src/Form/Type/BlogType.php
47+
namespace App\Form\Type;
4748

4849
// ...
4950
use App\Entity\Blog;

0 commit comments

Comments
 (0)