1 | <?php |
||
20 | final class ThemeContext implements Context |
||
21 | { |
||
22 | /** |
||
23 | * @var ThemeRepositoryInterface |
||
24 | */ |
||
25 | private $themeRepository; |
||
26 | |||
27 | /** |
||
28 | * @param ThemeRepositoryInterface $themeRepository |
||
29 | */ |
||
30 | public function __construct(ThemeRepositoryInterface $themeRepository) |
||
34 | |||
35 | /** |
||
36 | * @Transform :theme |
||
37 | * @Transform /^"([^"]+)" theme$/ |
||
38 | * @Transform /^theme "([^"]+)"$/ |
||
39 | */ |
||
40 | public function getThemeByThemeTitle($themeTitle) |
||
44 | } |
||
45 |