diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c5bce3..3db2f0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Types of changes Security in case of vulnerabilities. ) -## [1.10.1](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.10.1) – 2022-11-30 +## [1.11.0](https://github.com/contao-themes-net/nature-theme-bundle/tree/1.11.0) – 2022-11-30 - [Added] Add multi domain support diff --git a/src/Module/NatureThemeSetup.php b/src/Module/NatureThemeSetup.php index 46085a3..0c2089a 100644 --- a/src/Module/NatureThemeSetup.php +++ b/src/Module/NatureThemeSetup.php @@ -26,7 +26,7 @@ class NatureThemeSetup extends BackendModule { - public const VERSION = '1.10.1'; + public const VERSION = '1.11.0'; protected $strTemplate = 'be_naturetheme_setup'; diff --git a/src/ThemeUtils.php b/src/ThemeUtils.php index 1ffb386..24d754c 100644 --- a/src/ThemeUtils.php +++ b/src/ThemeUtils.php @@ -5,7 +5,7 @@ /* * nature theme bundle for Contao Open Source CMS * - * Copyright (C) 2022 pdir / digital agentur // pdir GmbH + * Copyright (C) 2022 pdir / digital agentur * * @package contao-themes-net/nature-theme-bundle * @link https://github.com/contao-themes-net/nature-theme-bundle @@ -19,7 +19,6 @@ namespace ContaoThemesNet\NatureThemeBundle; use Contao\Combiner; -use Contao\CoreBundle\Exception\InvalidResourceException; use Contao\StringUtil; use Contao\System; @@ -28,20 +27,17 @@ class ThemeUtils public static string $themeFolder = 'bundles/contaothemesnetnaturetheme/'; public static string $scssFolder = 'scss/'; - public static function getRootDir(): string + public static function getRootDir() { return System::getContainer()->getParameter('kernel.project_dir'); } - public static function getWebDir(): string + public static function getWebDir() { return StringUtil::stripRootDir(System::getContainer()->getParameter('contao.web_dir')); } - /** - * @throws InvalidResourceException - */ - public static function getCombinedStylesheet($theme = null): string + public static function getCombinedStylesheet($theme = null) { self::$scssFolder = self::$themeFolder.self::$scssFolder;