FileLoader
class FileLoader
Loads configuration files and converts them to php arrays using Decoders
Methods
Add a file bag, or change an array of SplFileInfo Objects to proper objects.
Process the current FileBag and return an array
Process file bag to load into the data manager.
Returns currently attached custom decoders
Returns currently supported Mime Types
Cleans up a file name for use as a namespace
Details
at line line 58
addDecoder(DecoderInterface $decoder)
Add a file decoder to the FileLoader
at line line 75
addFiles(mixed $files)
Add a file bag, or change an array of SplFileInfo Objects to proper objects.
at line line 95
array
process(bool $ns = true)
Process the current FileBag and return an array
at line line 109
array
decodeFileBagData(FileBag $fileBag, bool $ns = true)
Process file bag to load into the data manager.
A file bag is an array of SplFileInfo objects.
at line line 159
string
getFileContents(SplFileInfo $file)
Returns the contents of the file.
at line line 218
array
getDecoders()
Returns currently attached custom decoders
at line line 227
array
getMimeTypes()
Returns currently supported Mime Types
at line line 237
mixed
sanitizeNamespace($ns)
Cleans up a file name for use as a namespace