File tree 2 files changed +6
-28
lines changed
src/Symfony/Bundle/TwigBundle/Command
2 files changed +6
-28
lines changed Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \TwigBundle \Command ;
13
13
14
14
use Symfony \Bridge \Twig \Command \DebugCommand as BaseDebugCommand ;
15
- use Symfony \Component \DependencyInjection \ContainerInterface ;
16
15
use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
16
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
17
17
18
18
/**
19
10000
19
* Lists twig functions, filters, globals and tests present in the current project.
20
20
*
21
21
* @author Jordi Boggiano <j.boggiano@seld.be>
22
22
*/
23
- class DebugCommand extends BaseDebugCommand implements ContainerAwareInterface
23
+ final class DebugCommand extends BaseDebugCommand implements ContainerAwareInterface
24
24
{
25
- /**
26
- * @var ContainerInterface|null
27
- */
28
- private $ container ;
29
-
30
- /**
31
- * {@inheritdoc}
32
- */
33
- public function setContainer (ContainerInterface $ container = null )
34
- {
35
- $ this ->container = $ container ;
36
- }
25
+ use ContainerAwareTrait;
37
26
38
27
/**
39
28
* {@inheritdoc}
Original file line number Diff line number Diff line change 12
12
namespace Symfony \Bundle \TwigBundle \Command ;
13
13
14
14
use Symfony \Bridge \Twig \Command \LintCommand as BaseLintCommand ;
15
- use Symfony \Component \DependencyInjection \ContainerInterface ;
16
15
use Symfony \Component \DependencyInjection \ContainerAwareInterface ;
16
+ use Symfony \Component \DependencyInjection \ContainerAwareTrait ;
17
17
use Symfony \Component \Finder \Finder ;
18
18
19
19
/**
22
22
* @author Marc Weistroff <marc.weistroff@sensiolabs.com>
23
23
* @author Jérôme Tamarelle <jerome@tamarelle.net>
24
24
*/
25
- class LintCommand extends BaseLintCommand implements ContainerAwareInterface
25
+ final class LintCommand extends BaseLintCommand implements ContainerAwareInterface
26
26
{
27
- /**
28
- * @var ContainerInterface|null
29
- */
30
- private $ container ;
31
-
32
- /**
33
- * {@inheritdoc}
34
- */
35
- public function setContainer (ContainerInterface $ container = null )
36
- {
37
- $ this ->container = $ container ;
38
- }
27
+ use ContainerAwareTrait;
39
28
40
29
/**
41
30
* {@inheritdoc}
You can’t perform that action at this time.
0 commit comments