| 1 | <?php |
||
| 20 | final class ThemeHierarchyProvider implements ThemeHierarchyProviderInterface |
||
| 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 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function getThemeHierarchy(ThemeInterface $theme) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param string $themeName |
||
| 54 | * |
||
| 55 | * @return ThemeInterface |
||
| 56 | * |
||
| 57 | * @throws \InvalidArgumentException If theme is not found |
||
| 58 | */ |
||
| 59 | private function getTheme($themeName) |
||
| 69 | } |
||
| 70 |