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) |
||
63 | |||
64 | /** |
||
65 | * @Given the store has routes :firstName and :secondName |
||
66 | */ |
||
67 | public function theStoreHasRoutes(...$routesNames) |
||
73 | |||
74 | /** |
||
75 | * @Given the store has route :name with :contentTitle as its content |
||
76 | */ |
||
77 | public function theStoreHasRouteWithAsItsContent($name, $contentTitle) |
||
88 | } |
||
89 |