Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2c69e1e

Browse files
committed
Add a mention in CHANGELOG
1 parent 662eac4 commit 2c69e1e

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ CHANGELOG
2121
Use `Symfony\Component\Console\DependencyInjection\ConfigCachePass` instead.
2222
* Deprecated `PropertyInfoPass`, use `Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass` instead
2323
* Deprecated extending `ConstraintValidatorFactory`
24+
* Added `Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait` (requires PHP 7). Unlike the `Symfony\Bundle\FrameworkBundle\Controller\Controller`
25+
class, this trait does not have access to the dependency injection container. Its dependencies are explicitly and lazily
26+
injected using getter injection.
27+
`render()`, `renderView()` and `stream()` methods can only use Twig (using the templating component is not supported).
28+
The `json` method requires the serializer component (use `Symfony\Component\HttpFoundation\JsonResponse` directly if
29+
you do not want to use the serializer).
2430

2531
3.2.0
2632
-----

src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Controller;
1313

1414
use Doctrine\Common\Persistence\ManagerRegistry;
15+
use Symfony\Component\Form\Extension\Core\Type\FormType;
1516
use Symfony\Component\Form\FormBuilderInterface;
1617
use Symfony\Component\Form\FormFactoryInterface;
1718
use Symfony\Component\Form\FormInterface;
@@ -30,7 +31,6 @@
3031
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
3132
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
3233
use Symfony\Component\Security\Csrf\CsrfToken;
33-
use Symfony\Component\Form\Extension\Core\Type\FormType;
3434
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
3535
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
3636
use Symfony\Component\Serializer\SerializerInterface;

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/ControllerTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Controller;
1313

1414
use Doctrine\Common\Persistence\ManagerRegistry;
15+
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
1516
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Controller\UseControllerTraitController;
1617
use Symfony\Component\Form\FormBuilderInterface;
1718
use Symfony\Component\Form\FormFactoryInterface;
@@ -35,7 +36,6 @@
3536
use Symfony\Component\Security\Core\User\User;
3637
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
3738
use Symfony\Component\Serializer\SerializerInterface;
38-
use PHPUnit\Framework\TestCase as PHPUnitTestCase;
3939

4040
/**
4141
* @author Kévin Dunglas <[email protected]>

0 commit comments

Comments
 (0)