Extending Espo\Core\Utils\Config

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Frans
    Junior Member
    • Oct 2021
    • 3

    #1

    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?
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9617

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

    Comment

    • Frans
      Junior Member
      • Oct 2021
      • 3

      #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

      • Frans
        Junior Member
        • Oct 2021
        • 3

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

        Tnx.

        Comment

        • yuri
          EspoCRM product developer
          • Mar 2014
          • 9617

          #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...