1 | <?php |
||
26 | final class ThemeContext implements Context |
||
27 | { |
||
28 | /** |
||
29 | * @var SharedStorageInterface |
||
30 | */ |
||
31 | private $sharedStorage; |
||
32 | |||
33 | /** |
||
34 | * @var ThemeRepositoryInterface |
||
35 | */ |
||
36 | private $themeRepository; |
||
37 | |||
38 | /** |
||
39 | * @var ThemeFactoryInterface |
||
40 | */ |
||
41 | private $themeFactory; |
||
42 | |||
43 | /** |
||
44 | * @var ChannelRepositoryInterface |
||
45 | */ |
||
46 | private $channelRepository; |
||
47 | |||
48 | /** |
||
49 | * @var ObjectManager |
||
50 | */ |
||
51 | private $channelManager; |
||
52 | |||
53 | /** |
||
54 | * @param SharedStorageInterface $sharedStorage |
||
55 | * @param ThemeRepositoryInterface $themeRepository |
||
56 | * @param ThemeFactoryInterface $themeFactory |
||
57 | * @param ChannelRepositoryInterface $channelRepository |
||
58 | * @param ObjectManager $channelManager |
||
59 | */ |
||
60 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @Given the store has :themeName theme |
||
76 | */ |
||
77 | public function storeHasTheme($themeName) |
||
90 | |||
91 | /** |
||
92 | * @Given channel :channel uses :theme theme |
||
93 | */ |
||
94 | public function channelUsesTheme(ChannelInterface $channel, ThemeInterface $theme) |
||
103 | |||
104 | /** |
||
105 | * @Given channel :channel does not use any theme |
||
106 | */ |
||
107 | public function channelDoesNotUseAnyTheme(ChannelInterface $channel) |
||
115 | |||
116 | /** |
||
117 | * @Given /^(this theme) changes homepage template contents to "([^"]+)"$/ |
||
118 | */ |
||
119 | public function themeChangesHomepageTemplateContents(ThemeInterface $theme, $contents) |
||
130 | } |
||
131 |