\Expand\Addon\ActivatorAddonFileActivator

Summary

Methods
Properties
Constants
__construct()
getStatusesFilePath()
hasStatusForAddon()
No public properties found
No constants found
config()
getModulesStatuses()
readJson()
$statusesFile
$config
$cache
$files
$cacheKey
$cacheLifetime
$modulesStatuses
N/A
No private methods found
No private properties found
N/A

Properties

$statusesFile

$statusesFile : string

File used to store activation statuses

Type

string

$config

$config : \Illuminate\Config\Repository

Laravel config instance

Type

\Illuminate\Config\Repository

$cache

$cache : \Illuminate\Cache\CacheManager

Laravel cache instance

Type

\Illuminate\Cache\CacheManager

$files

$files : \Illuminate\Filesystem\Filesystem

Laravel Filesystem instance

Type

\Illuminate\Filesystem\Filesystem

$cacheKey

$cacheKey : string

Type

string

$cacheLifetime

$cacheLifetime : string

Type

string

$modulesStatuses

$modulesStatuses : array

Array of modules activation statuses

Type

array

Methods

__construct()

__construct(\Illuminate\Container\Container  $app) 

Parameters

\Illuminate\Container\Container $app

getStatusesFilePath()

getStatusesFilePath() : string

Get the path of the file where statuses are stored

Returns

string

hasStatusForAddon()

hasStatusForAddon(\Expand\Addon\Addon  $addon, \Expand\Addon\Activator\bool  $status) 

Parameters

\Expand\Addon\Addon $addon
\Expand\Addon\Activator\bool $status

config()

config(string  $key,   $default = null) : mixed

Reads a config parameter under the 'activators.file' key

Parameters

string $key
$default

Returns

mixed

getModulesStatuses()

getModulesStatuses() : array

Get modules statuses, either from the cache or from the json statuses file if the cache is disabled.

Throws

\Illuminate\Contracts\Filesystem\FileNotFoundException

Returns

array

readJson()

readJson() : array

Reads the json file that contains the activation statuses.

Throws

\Illuminate\Contracts\Filesystem\FileNotFoundException

Returns

array