Extending Espo\Core\Utils\Config

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

    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
    Member
    • Mar 2014
    • 8471

    #2
    Utils has only static methods. So the answer is "NO".
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    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
          Member
          • Mar 2014
          • 8471

          #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.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          Working...