1 | <?php |
||
9 | class AppExtension extends \Twig_Extension |
||
|
|||
10 | { |
||
11 | /** |
||
12 | * @var EntityManager |
||
13 | */ |
||
14 | protected $em; |
||
15 | |||
16 | 41 | public function __construct(EntityManager $entityManager) |
|
17 | { |
||
18 | 41 | $this->em = $entityManager; |
|
19 | 41 | } |
|
20 | |||
21 | 23 | public function getFunctions() |
|
22 | { |
||
23 | return array( |
||
24 | 23 | new TwigFunction('allTagsAsString', array($this, 'allTagsAsString')), |
|
25 | ); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return string |
||
30 | */ |
||
31 | 7 | public function allTagsAsString() |
|
41 | |||
42 | /** |
||
43 | * @return Tag[]|array |
||
44 | */ |
||
45 | 7 | protected function allTags() |
|
49 | |||
50 | public function getName() |
||
54 | } |
||
55 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.