1 | <?php |
||
11 | final class RouteContext implements Context |
||
12 | { |
||
13 | /** |
||
14 | * @var SharedStorageInterface |
||
15 | */ |
||
16 | private $sharedStorage; |
||
17 | |||
18 | /** |
||
19 | * @var ExampleFactoryInterface |
||
20 | */ |
||
21 | private $routeExampleFactory; |
||
22 | |||
23 | /** |
||
24 | * @var ObjectManager |
||
25 | */ |
||
26 | private $routeManager; |
||
27 | |||
28 | /** |
||
29 | * @var RepositoryInterface |
||
30 | */ |
||
31 | private $staticContentRepository; |
||
32 | |||
33 | /** |
||
34 | * @param SharedStorageInterface $sharedStorage |
||
35 | * @param ExampleFactoryInterface $routeExampleFactory |
||
36 | * @param ObjectManager $routeManager |
||
37 | * @param RepositoryInterface $staticContentRepository |
||
38 | */ |
||
39 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * @Given the store has route :name |
||
53 | */ |
||
54 | public function theStoreHasRoute($name) |
||
64 | |||
65 | /** |
||
66 | * @Given the store has routes :firstName and :secondName |
||
67 | */ |
||
68 | public function theStoreHasRoutes(...$routesNames) |
||
74 | |||
75 | /** |
||
76 | * @Given the store has route :name with :contentTitle as its content |
||
77 | */ |
||
78 | public function theStoreHasRouteWithAsItsContent($name, $contentTitle) |
||
90 | } |
||
91 |