Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 4.7
-
Fix Version/s: 4.7.23
-
Component/s: None
-
Labels:
-
Versioning Impact:Minor (add functionality in backwards-compatible manner)
-
Documentation Required?:Developer Doc
-
Funding Source:Contributed Code
-
Verified?:No
Description
To facilitate the Drupal 8 version , which will require being installed with composer, when including files or scripts, we must update from hard coded paths, to a settings based approach.
For example:
ex: in CRM/Utils/Check/Component/Security.php, change from
PHP{{"{$civicrm_root}/vendor/dompdf/dompdf/dompdf.php"}}
to
PHP{{Civi::paths()->getPath('[civicrm.vendor]/dompdf/dompdf/dompdf.php')}}
Necessary to solve this issue:
Part of Tim and I 's plan to get Civi ready for a D8 version
The plan:
https://gist.github.com/totten/0c1a01840ccc13388dbf252f5f9d4893
https://gist.github.com/totten/8905ba6ca805d44efe8f8585eb34dcbc