Import
class Import (View source)
Methods
No description
Get log
Auto import composer packages
Load ./system/boot/namespaces.php classes
Load autoload_classmap.php classes
Load autoload_files.php classes
Load autoload_psr4.php classes, used by PSR-4 packages
Load autoload_namespaces.php classes, used by PSR-0 packages
Associate namespace prefix to folder
Return array of libs
Save imported packages path to file in PHP format
Save imported autoload files path to file in PHP format
Details
__construct()
No description
array
logs()
Get log
int
auto()
Auto import composer packages
int|false
inAutoload()
Load ./system/boot/namespaces.php classes
int
classmap()
Load autoload_classmap.php classes
int
files()
Load autoload_files.php classes
int
psr4()
Load autoload_psr4.php classes, used by PSR-4 packages
int
psr0()
Load autoload_namespaces.php classes, used by PSR-0 packages
setItem(string $prefix, string $path)
Associate namespace prefix to folder
array
getLibs()
Return array of libs
bool
save(string $path)
Save imported packages path to file in PHP format
bool
saveFiles(string $path, bool $removeEmpty = false)
Save imported autoload files path to file in PHP format