File tree 3 files changed +8
-2
lines changed
src/Symfony/Bundle/FrameworkBundle
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ CHANGELOG
21
21
Use ` Symfony\Component\Console\DependencyInjection\ConfigCachePass ` instead.
22
22
* Deprecated ` PropertyInfoPass ` , use ` Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass ` instead
23
23
* 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).
24
30
25
31
3.2.0
26
32
-----
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \Controller ;
13
13
14
14
use Doctrine \Common \Persistence \ManagerRegistry ;
15
+ use Symfony \Component \Form \Extension \Core \Type \FormType ;
15
16
use Symfony \Component \Form \FormBuilderInterface ;
16
17
use Symfony \Component \Form \FormFactoryInterface ;
17
18
use Symfony \Component \Form \FormInterface ;
30
31
use Symfony \Component \Security \Core \Authorization \AuthorizationCheckerInterface ;
31
32
use Symfony \Component \Security \Core \Exception \AccessDeniedException ;
32
33
use Symfony \Component \Security \Csrf \CsrfToken ;
33
- use Symfony \Component \Form \Extension \Core \Type \FormType ;
34
34
use Symfony \Component \Routing \Generator \UrlGeneratorInterface ;
35
35
use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
36
36
use Symfony \Component \Serializer \SerializerInterface ;
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \FrameworkBundle \Tests \Controller ;
13
13
14
14
use Doctrine \Common \Persistence \ManagerRegistry ;
15
+ use PHPUnit \Framework \TestCase as PHPUnitTestCase ;
15
16
use Symfony \Bundle \FrameworkBundle \Tests \Fixtures \Controller \UseControllerTraitController ;
16
17
use Symfony \Component \Form \FormBuilderInterface ;
17
18
use Symfony \Component \Form \FormFactoryInterface ;
35
36
use Symfony \Component \Security \Core \User \User ;
36
37
use Symfony \Component \Security \Csrf \CsrfTokenManagerInterface ;
37
38
use Symfony \Component \Serializer \SerializerInterface ;
38
- use PHPUnit \Framework \TestCase as PHPUnitTestCase ;
39
39
40
40
/**
41
41
* @author Kévin Dunglas <[email protected] >
You can’t perform that action at this time.
0 commit comments