class Config (View source)

Properties

protected Collection $data

Methods

__construct(string $locales, string $defaultLocale, Stopwatch $stopwatch, string $projectDir, CacheInterface $cache, string $publicFolder, ClearCacheController $clearCacheController, KernelInterface $kernel)

No description

get(string $path, $default = null)

Get a config value, using a path.

bool
has(string $path)

No description

string
getPath(string $path, bool $absolute = true, $additional = null)

No description

Collection
getPaths()

No description

Collection
getMediaTypes()

No description

Collection|null
getContentType(string $name)

No description

Collection|null
getTaxonomy(string $name)

No description

Collection
getFileTypes()

No description

int
getMaxUpload()

No description

Details

__construct(string $locales, string $defaultLocale, Stopwatch $stopwatch, string $projectDir, CacheInterface $cache, string $publicFolder, ClearCacheController $clearCacheController, KernelInterface $kernel)

Parameters

string $locales
string $defaultLocale
Stopwatch $stopwatch
string $projectDir
CacheInterface $cache
string $publicFolder
ClearCacheController $clearCacheController
KernelInterface $kernel

get(string $path, $default = null)

Get a config value, using a path.

For example: $var = $config->get('general/wysiwyg/ck/contentsCss');

Parameters

string $path
$default

bool has(string $path)

Parameters

string $path

Return Value

bool

string getPath(string $path, bool $absolute = true, $additional = null)

Parameters

string $path
bool $absolute
$additional

Return Value

string

Collection getPaths()

Return Value

Collection

Collection getMediaTypes()

Return Value

Collection

Collection|null getContentType(string $name)

Parameters

string $name

Return Value

Collection|null

Collection|null getTaxonomy(string $name)

Parameters

string $name

Return Value

Collection|null

Collection getFileTypes()

Return Value

Collection

int getMaxUpload()

Return Value

int