Announcement

Collapse
No announcement yet.

Extending Espo\Core\Utils\Config

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Extending Espo\Core\Utils\Config

    Is there a way to extend Classes in Espo\Core\Utils (without changing the provide core files); specific Espo\Core\Utils\Config

    I like to change the way data/config.php stores values, because of some custom docker / CICD setups.

    I tried to understand the autoloader, but could use some guidence. Any tips?

  • #2
    Utils has only static methods. So the answer is "NO".

    Comment


    • #3
      I don't get it. (Or won't take NO for an answer )

      https://github.com/espocrm/espocrm/b...ilder.php#L138
      Config is not called static right?

      Maybe I need to rephrase my question.

      Is there a way to use a custom Config (instead of Espo\Core\Utils\Config) class?

      Comment


      • #4
        O wait... Maybe I need to think before asking.. I do get it... The answer is NO.

        Tnx.

        Comment


        • #5
          I though you want to extend Util. I think it's possible to extend Config. But since it's loaded in the very beginning it will be tricky.

          Comment

          Working...
          X