src/PHPDish/Bundle/ThemeBundle/Theming/GenericThemeContext.php
public function getTheme()
    {
        if ($this->currentThemeName) {
            foreach ($this->themeFinder->find() as $theme) {
                if ($theme->getName() === $this->currentThemeName) {
                    return $theme;
                }
            }
            throw new \InvalidArgumentException(sprintf('The theme "%s" is not found', $this->currentThemeName));
        }
        return null;
    }
public function getTheme()
    {
        if ($this->currentThemeName) {
            foreach ($this->themeFinder->find() as $theme) {
                if ($theme->getName() === $this->currentThemeName) {
                    return $theme;
                }
            }
            throw new \InvalidArgumentException(sprintf('The theme "%s" is not found', $this->currentThemeName));
        }
        return null;
    }
{@inheritdoc}