use Org\Mxchange\CoreFramework\Filesystem\FileNotFoundException;
use Org\Mxchange\CoreFramework\Object\BaseFrameworkSystem;
use Org\Mxchange\CoreFramework\Registry\GenericRegistry;
-use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
+use Org\Mxchange\CoreFramework\Traits\Template\CompileableTemplateTrait;
/**
* A general menu system class
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
abstract class BaseMenu extends BaseFrameworkSystem {
-
- /**
- * Template engine instance
- */
- private $templateInstance = NULL;
+ // Load traits
+ use CompileableTemplateTrait;
/**
* Protected constructor
parent::__construct($className);
}
- /**
- * Setter for template engine instances
- *
- * @param $templateInstance An instance of a CompileableTemplate class
- * @return void
- */
- protected final function setTemplateInstance (CompileableTemplate $templateInstance) {
- $this->templateInstance = $templateInstance;
- }
-
- /**
- * Getter for template engine instances
- *
- * @return $templateInstance An instance of a CompileableTemplate class
- */
- public final function getTemplateInstance () {
- return $this->templateInstance;
- }
-
/**
* Renders the menu by loading the base template and a menu-specific
* template.