mati-core/constant

Database constants for MatiCore

v1.0.2 2021-09-02 14:04 UTC

This package is auto-updated.

Last update: 2024-04-29 04:47:06 UTC


README

Latest Stable Version Total Downloads Integrity check Latest Unstable Version License

Database constants for Mati-Core

Install

composer require mati-core/constant

Using

Include to presenter

use \MatiCore\Constant\ConstantManagerAccessor;

class *Presenter extends BasePresenter
{

    /**
    *   @var ConstantManagerAccessor
    *   @inject 
    */
    public ConstantManagerAccessor $constantManager;

}

Load constant value

$this->constantManager->get()->get('constant-key');

Set constant value

$this->constantManager->get()->set('constant-key', $value);