X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Fclasses%2Ftemplate%2Fclass_BaseTemplateEngine.php;fp=framework%2Fmain%2Fclasses%2Ftemplate%2Fclass_BaseTemplateEngine.php;h=a4abc51b271fec75f9c1cb674a77b1cbd53e9183;hp=5ca3c6ad2b7f38a3b2b90c7f5f94483ce79d120e;hb=67f34799fe805b8a01cd56f64d12813a37195ee1;hpb=63f5632b0c5d2cebf8dd0940fdab561f86470f80;ds=sidebyside diff --git a/framework/main/classes/template/class_BaseTemplateEngine.php b/framework/main/classes/template/class_BaseTemplateEngine.php index 5ca3c6ad..a4abc51b 100644 --- a/framework/main/classes/template/class_BaseTemplateEngine.php +++ b/framework/main/classes/template/class_BaseTemplateEngine.php @@ -7,12 +7,12 @@ use CoreFramework\Bootstrap\FrameworkBootstrap; use CoreFramework\EntryPoint\ApplicationEntryPoint; use CoreFramework\Factory\ObjectFactory; use CoreFramework\Filesystem\FileNotFoundException; -use CoreFramework\Generic\EmptyVariableException; use CoreFramework\Manager\ManageableApplication; use CoreFramework\Object\BaseFrameworkSystem; use CoreFramework\Response\Responseable; // Import SPL stuff +use \InvalidArgumentException; use \SplFileInfo; /** @@ -1112,7 +1112,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { * @param $variableName The variable we are looking for * @param $value The value we want to store in the variable * @return void - * @throws EmptyVariableException If the variable name is left empty + * @throws InvalidArgumentException If the variable name is left empty */ public final function assignVariable ($variableName, $value) { // Replace all dashes to underscores to match variables with configuration entries @@ -1121,7 +1121,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { // Empty variable found? if (empty($variableName)) { // Throw an exception - throw new EmptyVariableException(array($this, 'variableName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING); + throw new InvalidArgumentException('Parameter "variableName" is empty'); } // END - if // First search for the variable if it was already added