Skip to content

Commit 8b45bd0

Browse files
committedApr 24, 2019
Merge branch '3.4' into 4.2
* 3.4: ordered use statements in code examples
2 parents f83b88a + 93be6df commit 8b45bd0

File tree

154 files changed

+316
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+316
-314
lines changed
 

‎best_practices/business-logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ looking for mapping information::
163163

164164
namespace App\Entity;
165165

166-
use Doctrine\ORM\Mapping as ORM;
167166
use Doctrine\Common\Collections\ArrayCollection;
167+
use Doctrine\ORM\Mapping as ORM;
168168

169169
/**
170170
* @ORM\Entity

‎best_practices/forms.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ PHP class::
2121

2222
use App\Entity\Post;
2323
use Symfony\Component\Form\AbstractType;
24+
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
25+
use Symfony\Component\Form\Extension\Core\Type\EmailType;
26+
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
2427
use Symfony\Component\Form\FormBuilderInterface;
2528
use Symfony\Component\OptionsResolver\OptionsResolver;
26-
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
27-
use Symfony\Component\Form\Extension\Core\Type\EmailType;
28-
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
2929

3030
class PostType extends AbstractType
3131
{
@@ -103,9 +103,9 @@ some developers configure form buttons in the controller::
103103

104104
use App\Entity\Post;
105105
use App\Form\PostType;
106-
use Symfony\Component\HttpFoundation\Request;
107106
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
108107
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
108+
use Symfony\Component\HttpFoundation\Request;
109109

110110
class PostController extends AbstractController
111111
{

0 commit comments

Comments
 (0)
Please sign in to comment.