1 | <?php |
||
22 | abstract class SymfonyPage extends Page |
||
23 | { |
||
24 | /** |
||
25 | * @var RouterInterface |
||
26 | */ |
||
27 | protected $router; |
||
28 | |||
29 | /** |
||
30 | * @param Session $session |
||
31 | * @param Factory $factory |
||
32 | * @param array $parameters |
||
33 | * @param RouterInterface $router |
||
34 | */ |
||
35 | public function __construct(Session $session, Factory $factory, array $parameters = [], RouterInterface $router) |
||
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | protected function getUrl(array $urlParameters = []) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | * |
||
57 | * Not used by Symfony page. |
||
58 | */ |
||
59 | protected function getPath() |
||
62 | |||
63 | abstract protected function getRouteName(); |
||
64 | } |
||
65 |