1 | <?php |
||
27 | class NewsExtension extends AbstractExtension implements InitRuntimeInterface |
||
|
|||
28 | { |
||
29 | /** |
||
30 | * @var RouterInterface |
||
31 | */ |
||
32 | private $router; |
||
33 | |||
34 | /** |
||
35 | * @var TagManagerInterface |
||
36 | */ |
||
37 | private $tagManager; |
||
38 | |||
39 | /** |
||
40 | * @var Environment |
||
41 | */ |
||
42 | private $environment; |
||
43 | |||
44 | /** |
||
45 | * @var BlogInterface |
||
46 | */ |
||
47 | private $blog; |
||
48 | |||
49 | public function __construct(RouterInterface $router, ManagerInterface $tagManager, BlogInterface $blog) |
||
64 | |||
65 | /** |
||
66 | * Returns a list of functions to add to the existing list. |
||
67 | * |
||
68 | * @return array An array of functions |
||
69 | */ |
||
70 | public function getFunctions() |
||
83 | |||
84 | public function initRuntime(Environment $environment): void |
||
88 | |||
89 | /** |
||
90 | * Returns the name of the extension. |
||
91 | * |
||
92 | * @return string The extension name |
||
93 | */ |
||
94 | public function getName() |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function renderTagRss() |
||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | public function generatePermalink(PostInterface $post) |
||
124 | } |
||
125 |
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.