FileLocator.php
system/Autoloader/FileLocator.php
1 class
10 methods
class FileLocator
Allows loading non-class files in a namespaced manner. Works with Helpers, Views, etc.
__construct
(Autoloader $autoloader)
locateFile
(string $file, ?string $folder = null, string $ext = 'php')
getClassname
(string $file)
search
(string $path, string $ext = 'php', bool $prioritizeApp = true)
ensureExt
(string $path, string $ext)
getNamespaces
()
findQualifiedNameFromPath
(string $path)
listFiles
(string $path)
listNamespaceFiles
(string $prefix, string $path)
legacyLocate
(string $file, ?string $folder = null)