The class Twig_SimpleFunction has been deprecated with message: to be removed in 3.0
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.
Loading history...
11
];
12
}
13
14
/**
15
* Add app_dev.php in dev environment if the link is locale.
16
*
17
* @param \Twig_Environment $twig
18
* @param $link
19
*
20
* @return string
21
*/
22
public function menuLink(\Twig_Environment $twig, $link)
23
{
24
$globals = $twig->getGlobals();
25
$app = $globals['app'];
26
$env = $app->getEnvironment();
27
28
if ($env === 'dev' && strpos($link, 'http') === false) {
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.