44
55; ; Author: Steven Rémot <[email protected] >66; ; original code for C++ by Eric M. Ludlam <[email protected] >7+ ; ; Version: 1.1.0
78; ; Keywords: PHP project ede
89; ; Homepage: https://github.com/emacs-php/ede-php-autoload
910
@@ -216,7 +217,7 @@ ROOT-DIR is the root directory of the project."
216217 :type list
217218 :documentation " The class autoloads explicitly defined at initialization" )))
218219
219- (defmethod initialize-instance ((this ede-php-autoload-project) &rest fields)
220+ (cl- defmethod initialize-instance ((this ede-php-autoload-project) &rest fields)
220221 " Make sure the :file is fully expanded."
221222 (call-next-method this (list
222223 :file (plist-get (car fields) :file )
@@ -245,7 +246,7 @@ ROOT-DIR is the root directory of the project."
245246 (unless (slot-boundp this 'targets )
246247 (oset this :targets nil ))))
247248
248- (defmethod ede-php-autoload-reload-autoloads-for-project ((this ede-php-autoload-project))
249+ (cl- defmethod ede-php-autoload-reload-autoloads-for-project ((this ede-php-autoload-project))
249250 " Regenerate the class loaders.
250251
251252This can be used when some composer dependencies changed, to take
@@ -260,11 +261,11 @@ the new autoloads into account."
260261 (oset this class-loader
261262 (ede-php-autoload-create-class-loader cleaned-autoloads))))
262263
263- (defmethod ede-find-subproject-for-directory ((proj ede-php-autoload-project) dir)
264+ (cl- defmethod ede-find-subproject-for-directory ((proj ede-php-autoload-project) dir)
264265 " Return PROJ, for handling all subdirs below DIR."
265266 proj)
266267
267- (defmethod ede-find-target ((proj ede-php-autoload-project) buffer)
268+ (cl- defmethod ede-find-target ((proj ede-php-autoload-project) buffer)
268269 " Find an EDE target in PROJ for BUFFER.
269270If one doesn't exist, create a new one for this directory."
270271 (let* ((targets (oref proj targets))
@@ -280,21 +281,21 @@ If one doesn't exist, create a new one for this directory."
280281 (object-add-to-list proj :targets ans))
281282 ans))
282283
283- (defmethod ede-project-root ((this ede-php-autoload-project))
284+ (cl- defmethod ede-project-root ((this ede-php-autoload-project))
284285 " Return my root."
285286 this)
286287
287- (defmethod ede-project-root-directory ((this ede-php-autoload-project))
288+ (cl- defmethod ede-project-root-directory ((this ede-php-autoload-project))
288289 " Return my root."
289290 (file-name-directory (oref this file)))
290291
291- (defmethod ede-php-autoload-find-class-def-file ((this ede-php-autoload-project) class-name)
292+ (cl- defmethod ede-php-autoload-find-class-def-file ((this ede-php-autoload-project) class-name)
292293 " Find the file in which CLASS-NAME is defined.
293294
294295CLASS-NAME must be the full name of the class, with all its parent namespaces."
295296 (ede-php-autoload-find-class-def-file (oref this class-loader) class-name))
296297
297- (defmethod ede-php-autoload-get-class-name-for-file
298+ (cl- defmethod ede-php-autoload-get-class-name-for-file
298299 ((this ede-php-autoload-project) file-name)
299300 " Generate a suitable class name for the current FILE-NAME.
300301
@@ -303,7 +304,7 @@ Generate this class name using the class loader information.
303304FILE-NAME must be absolute or relative to the project root."
304305 (ede-php-autoload-get-class-name-for-file (oref this class-loader) file-name))
305306
306- (defmethod ede-php-autoload-complete ((this ede-php-autoload-project) prefix)
307+ (cl- defmethod ede-php-autoload-complete ((this ede-php-autoload-project) prefix)
307308 " Get completion suggestions for the type PREFIX.
308309
309310PREFIX is the beginning of a fully-qualified name.
@@ -312,7 +313,7 @@ The result is a list of completion suggestions for this
312313prefix."
313314 (ede-php-autoload-complete (oref this class-loader) prefix))
314315
315- (defmethod ede-php-autoload-complete-type-name ((this ede-php-autoload-project) prefix)
316+ (cl- defmethod ede-php-autoload-complete-type-name ((this ede-php-autoload-project) prefix)
316317 " Get completion suggestions for the type PREFIX.
317318
318319PREFIX is the beginning of a fully-qualified name.
0 commit comments