getExtensionById('tao'); } /** * Register a new path for given alias, trigger a warning if path already register * * @author Sam, sam@taotesting.com * @param string $id * @param string $newLibConfig */ public function register($id, $newLibConfig) { $registry = self::getRegistry(); $libConfig = []; if ($registry->isRegistered($id)) { $libConfig = $registry->get($id); } $libConfig = array_replace_recursive($libConfig, $newLibConfig); $registry->set($id, $libConfig); } }