|
|
|
@ -177,9 +177,16 @@ bareword typenames."))
|
|
|
|
|
((al phpinspect-autoloader) file)
|
|
|
|
|
(let* ((fs (phpinspect-project-fs (phpinspect-autoloader-project al)))
|
|
|
|
|
(project-root (file-name-directory (cdr file)))
|
|
|
|
|
(json (phpinspect--read-json-file fs (cdr file)))
|
|
|
|
|
(autoload (gethash "autoload" json))
|
|
|
|
|
batch)
|
|
|
|
|
json autoload batch)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(condition-case err
|
|
|
|
|
(setq json (phpinspect--read-json-file fs (cdr file)))
|
|
|
|
|
(t (message "Error parsing composer json at %s : %s " (cdr file) err)))
|
|
|
|
|
|
|
|
|
|
(when json
|
|
|
|
|
(setq autoload (gethash "autoload" json))
|
|
|
|
|
|
|
|
|
|
(when (hash-table-p autoload)
|
|
|
|
|
(maphash
|
|
|
|
|
(lambda (type prefixes)
|
|
|
|
@ -225,7 +232,7 @@ bareword typenames."))
|
|
|
|
|
(push strategy batch))
|
|
|
|
|
(_ (phpinspect--log "Unsupported autoload strategy \"%s\" encountered" type)))))
|
|
|
|
|
autoload)
|
|
|
|
|
(phpinspect-pipeline-emit-all batch))))
|
|
|
|
|
(phpinspect-pipeline-emit-all batch)))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(cl-defmethod phpinspect-autoloader-resolve ((autoloader phpinspect-autoloader)
|
|
|
|
|