PHP Class Devise\Support\Config\FileManager

Datei anzeigen Open project: devisephp/cms

Protected Properties

Property Type Description
$Container
$Filesystem

Public Methods

Method Description
__construct ( Illuminate\Filesystem\Filesystem $Filesystem, Framework $Framework )
getAppOnly ( $dotPath ) : array Retrives only the config array from the app's file. exclude's the package's config
saveToFile ( string $content, string $filename ) : string | boolean Retrives and writes/saves supplied content to specified config file

Private Methods

Method Description
clearCache ( ) : boolean Deletes cache in PHP caching module(s)
getFileByEnvironment ( string $filename ) : Exception Retrieves config file
prettyVarExport ( string $content ) : string Formats/cleans var_export for writing to config file

Method Details

__construct() public method

public __construct ( Illuminate\Filesystem\Filesystem $Filesystem, Framework $Framework )
$Filesystem Illuminate\Filesystem\Filesystem
$Framework Devise\Support\Framework

getAppOnly() public method

Retrives only the config array from the app's file. exclude's the package's config
public getAppOnly ( $dotPath ) : array
return array

saveToFile() public method

Retrives and writes/saves supplied content to specified config file
public saveToFile ( string $content, string $filename ) : string | boolean
$content string
$filename string
return string | boolean | boolean

Property Details

$Container protected_oe property

protected $Container

$Filesystem protected_oe property

protected $Filesystem