1 | <?php |
||
17 | class TwigExtension extends \Twig\Extension\AbstractExtension |
||
18 | { |
||
19 | /** |
||
20 | * @var Router |
||
21 | */ |
||
22 | private $router; |
||
23 | /** |
||
24 | * @var string|UriInterface |
||
25 | */ |
||
26 | private $uri; |
||
27 | |||
28 | public function __construct($router, $uri) |
||
33 | |||
34 | public function getName() |
||
38 | |||
39 | public function getFunctions() |
||
49 | |||
50 | public function pathFor($name, $data = [], $queryParams = [], $appName = 'default') |
||
54 | |||
55 | /** |
||
56 | * Similar to pathFor but returns a fully qualified URL |
||
57 | * |
||
58 | * @param string $name The name of the route |
||
59 | * @param array $data Route placeholders |
||
60 | * @param array $queryParams |
||
61 | * @param string $appName |
||
62 | * @return string fully qualified URL |
||
63 | */ |
||
64 | public function fullUrlFor($name, $data = [], $queryParams = [], $appName = 'default') |
||
79 | |||
80 | public function baseUrl() |
||
89 | |||
90 | public function isCurrentPath($name, $data = []) |
||
94 | |||
95 | /** |
||
96 | * Returns current path on given URI. |
||
97 | * |
||
98 | * @param bool $withQueryString |
||
99 | * @return string |
||
100 | */ |
||
101 | public function currentPath($withQueryString = false) |
||
112 | |||
113 | /** |
||
114 | * Set the base url |
||
115 | * |
||
116 | * @param string|Slim\Http\Uri $baseUrl |
||
117 | * @return void |
||
118 | */ |
||
119 | public function setBaseUrl($baseUrl) |
||
123 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.