hook_civicrm_angularModules - Allow JS files from assetBuilder and other ext's
authorTim Otten <totten@civicrm.org>
Wed, 20 Sep 2017 06:54:08 +0000 (23:54 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 22 Sep 2017 23:53:13 +0000 (16:53 -0700)
commite5c376e769833a0295ccebcdf11154905ae59892
treecb69d18a71665717fb5a4a3330ddba17e0a928a6
parent1b6476e6c432a965f87d49027fddce9fd01e8ea3
hook_civicrm_angularModules - Allow JS files from assetBuilder and other ext's

== Before ==

In `hook_civicrm_angularModules`, the `js` resources are assumed
to be file-blobs relative to the declared extension.

== After ==

In `hook_civicrm_angularModules`, the `js` resources can be:

 * `assetBuilder://NAME?PARAMS`; in which case the JS file is loaded from the `asset_builder` service
 * `ext://EXTKEY/FILE`; in which case the JS file is loaded form another extension
 * Otherwise, the resource is assumed to be file-blob relative to the declared extension
CRM/Core/Resources.php
CRM/Utils/Hook.php
Civi/Angular/Manager.php
Civi/Core/AssetBuilder.php
tests/phpunit/Civi/Angular/ManagerTest.php