(dev/core#2258) CryptoRegistry - Don't parse factory code unless it's being used
authorTim Otten <totten@civicrm.org>
Wed, 16 Dec 2020 23:41:48 +0000 (15:41 -0800)
committerTim Otten <totten@civicrm.org>
Sat, 19 Dec 2020 04:54:30 +0000 (20:54 -0800)
commit23fa01181f70f92fb3ac319cfb9e8644f15dfb4d
treef2727e7a56028ef9472a07ec05c49a849132226c
parent7c5110c362e57b9c424829070f8e13274bbe0cfd
(dev/core#2258) CryptoRegistry - Don't parse factory code unless it's being used

This moves the factory function from `Container.php` (which is loaded on all
page-views on all configurations) to `CryptoRegistry.php` (which is only
loaded if the site actually used encrypted fields).
Civi/Core/Container.php
Civi/Crypto/CryptoRegistry.php