X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ftemplate%2Fclass_BaseTemplateEngine.php;h=1908e3bc9b87eef6372134402779611f29e4177a;hp=8b0c14d5705c3ed8c394f1547dec76360c231fbe;hb=2b4f4b88ec5f9d385110e800494c680e164b5a36;hpb=4f9cf34b521892cb99fae9b21b92787f3d555b74 diff --git a/framework/main/classes/template/class_BaseTemplateEngine.php b/framework/main/classes/template/class_BaseTemplateEngine.php index 8b0c14d5..1908e3bc 100644 --- a/framework/main/classes/template/class_BaseTemplateEngine.php +++ b/framework/main/classes/template/class_BaseTemplateEngine.php @@ -9,6 +9,7 @@ use Org\Mxchange\CoreFramework\Factory\ObjectFactory; use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException; use Org\Mxchange\CoreFramework\Manager\ManageableApplication; use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem; +use Org\Mxchange\CoreFramework\Registry\GenericRegistry; use Org\Mxchange\CoreFramework\Response\Responseable; // Import SPL stuff @@ -37,7 +38,7 @@ use \SplFileInfo; * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseTemplateEngine extends BaseFrameworkSystem { +abstract class BaseTemplateEngine extends BaseFrameworkSystem { /** * The local path name where all templates and sub folders for special * templates are stored. We will internally determine the language plus @@ -1212,10 +1213,12 @@ class BaseTemplateEngine extends BaseFrameworkSystem { /** * Assigns all the application data with template variables * - * @param $applicationInstance A manageable application instance * @return void */ - public function assignApplicationData (ManageableApplication $applicationInstance) { + public function assignApplicationData () { + // Get application instance + $applicationInstance = GenericRegistry::getRegistry()->getInstance('application'); + // Get long name and assign it $this->assignVariable('app_full_name' , $applicationInstance->getAppName());