PHP Class Newscoop\Installer\Services\BootstrapService

Exibir arquivo Open project: sourcefabric/newscoop

Public Properties

Property Type Description
$basePath
$mustBeWritable

Protected Properties

Property Type Description
$filesystem
$logger

Public Methods

Method Description
__construct ( object $logger = null, array $directories = ['cache', 'log', 'library/Proxy', 'themes'], string $basePath = null ) Construct class
checkDirectories ( ) : mixed Check if all directories are writable
makeDirectoriesWritable ( ) : boolean Try to make all directories writeable
warmapCache ( ) Reload themes reditions in datbase

Method Details

__construct() public method

Construct class
public __construct ( object $logger = null, array $directories = ['cache', 'log', 'library/Proxy', 'themes'], string $basePath = null )
$logger object
$directories array
$basePath string

checkDirectories() public method

Check if all directories are writable
public checkDirectories ( ) : mixed
return mixed true if all writable or array with not writable directories

makeDirectoriesWritable() public method

Try to make all directories writeable

warmapCache() public method

Reload themes reditions in datbase
public warmapCache ( )

Property Details

$basePath public_oe property

public $basePath

$filesystem protected_oe property

protected $filesystem

$logger protected_oe property

protected $logger

$mustBeWritable public_oe property

public $mustBeWritable