PHP Класс AsseticBundle\Configuration

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$acceptableErrors array List of error types occurring in EVENT_DISPATCH_ERROR that will use this module to render assets.
$basePath string | null By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBasePath()" Example: /~jdo/
$baseUrl string | null By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBaseUrl()" Example: http://example.com/
$buildOnRequest boolean Should build assets on request.
$cacheEnabled boolean Is cache enabled.
$cachePath string Full path to cache directory.
$combine boolean Combine option giving the opportunity not to combine the assets in debug mode.
$controllers array Map of controllers names and assets configuration.
$debug boolean Debug option that is passed to Assetic.
$default array Default options.
$modules array Map of modules names and assets configuration.
$rendererToStrategy array Map of strategies that will be choose to setup Assetic\AssetInterface for particular Zend\View\Renderer\RendererInterface
$routes array Map of routes names and assets configuration.
$umask null | integer Umask
$webPath string Full path to public directory where assets will be generated.
$writeIfChanged boolean Asset will be save on disk, only when it's modification time was changed

Открытые методы

Метод Описание
__construct ( $config = null )
addModule ( $name, array $options )
addRendererToStrategy ( $rendererClass, $strategyClass )
detectBaseUrl ( )
getAcceptableErrors ( )
getBasePath ( ) : null | string
getBaseUrl ( )
getBuildOnRequest ( ) : boolean
getCacheEnabled ( )
getCachePath ( )
getController ( $name, $default = null )
getControllers ( )
getDefault ( )
getModule ( $name, $default = null )
getModules ( )
getRoute ( $name, $default = null )
getRoutes ( )
getStrategyNameForRenderer ( $rendererName, $default = null )
getUmask ( ) : integer | null
getWebPath ( $file = null )
getWriteIfChanged ( ) : boolean
isCombine ( )
isDebug ( )
setAcceptableErrors ( array $acceptableErrors )
setBasePath ( null | string $basePath )
setBaseUrl ( $baseUrl )
setBuildOnRequest ( boolean $flag )
setCacheEnabled ( $cacheEnabled )
setCachePath ( $path )
setCombine ( $flag )
setControllers ( array $controllers )
setDebug ( $flag )
setDefault ( array $default )
setModules ( array $modules )
setRendererToStrategy ( array $strategyForRenderer )
setRoutes ( array $routes )
setUmask ( null | integer $umask )
setWebPath ( $path )
setWriteIfChanged ( boolean $flag )

Защищенные методы

Метод Описание
assembleSetterNameFromConfigKey ( $key )
processArray ( $config )

Описание методов

__construct() публичный метод

public __construct ( $config = null )

addModule() публичный метод

public addModule ( $name, array $options )
$options array

addRendererToStrategy() публичный метод

public addRendererToStrategy ( $rendererClass, $strategyClass )

assembleSetterNameFromConfigKey() защищенный метод

protected assembleSetterNameFromConfigKey ( $key )

detectBaseUrl() публичный метод

public detectBaseUrl ( )

getAcceptableErrors() публичный метод

public getAcceptableErrors ( )

getBasePath() публичный метод

public getBasePath ( ) : null | string
Результат null | string

getBaseUrl() публичный метод

public getBaseUrl ( )

getBuildOnRequest() публичный метод

public getBuildOnRequest ( ) : boolean
Результат boolean

getCacheEnabled() публичный метод

public getCacheEnabled ( )

getCachePath() публичный метод

public getCachePath ( )

getController() публичный метод

public getController ( $name, $default = null )

getControllers() публичный метод

public getControllers ( )

getDefault() публичный метод

public getDefault ( )

getModule() публичный метод

public getModule ( $name, $default = null )

getModules() публичный метод

public getModules ( )

getRoute() публичный метод

public getRoute ( $name, $default = null )

getRoutes() публичный метод

public getRoutes ( )

getStrategyNameForRenderer() публичный метод

public getStrategyNameForRenderer ( $rendererName, $default = null )

getUmask() публичный метод

public getUmask ( ) : integer | null
Результат integer | null

getWebPath() публичный метод

public getWebPath ( $file = null )

getWriteIfChanged() публичный метод

public getWriteIfChanged ( ) : boolean
Результат boolean

isCombine() публичный метод

public isCombine ( )

isDebug() публичный метод

public isDebug ( )

processArray() защищенный метод

protected processArray ( $config )

setAcceptableErrors() публичный метод

public setAcceptableErrors ( array $acceptableErrors )
$acceptableErrors array

setBasePath() публичный метод

public setBasePath ( null | string $basePath )
$basePath null | string

setBaseUrl() публичный метод

public setBaseUrl ( $baseUrl )

setBuildOnRequest() публичный метод

public setBuildOnRequest ( boolean $flag )
$flag boolean

setCacheEnabled() публичный метод

public setCacheEnabled ( $cacheEnabled )

setCachePath() публичный метод

public setCachePath ( $path )

setCombine() публичный метод

public setCombine ( $flag )

setControllers() публичный метод

public setControllers ( array $controllers )
$controllers array

setDebug() публичный метод

public setDebug ( $flag )

setDefault() публичный метод

public setDefault ( array $default )
$default array

setModules() публичный метод

public setModules ( array $modules )
$modules array

setRendererToStrategy() публичный метод

public setRendererToStrategy ( array $strategyForRenderer )
$strategyForRenderer array

setRoutes() публичный метод

public setRoutes ( array $routes )
$routes array

setUmask() публичный метод

public setUmask ( null | integer $umask )
$umask null | integer

setWebPath() публичный метод

public setWebPath ( $path )

setWriteIfChanged() публичный метод

public setWriteIfChanged ( boolean $flag )
$flag boolean

Описание свойств

$acceptableErrors защищенное свойство

List of error types occurring in EVENT_DISPATCH_ERROR that will use this module to render assets.
protected array $acceptableErrors
Результат array

$basePath защищенное свойство

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBasePath()" Example: /~jdo/
protected string|null $basePath
Результат string | null

$baseUrl защищенное свойство

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBaseUrl()" Example: http://example.com/
protected string|null $baseUrl
Результат string | null

$buildOnRequest защищенное свойство

Should build assets on request.
protected bool $buildOnRequest
Результат boolean

$cacheEnabled защищенное свойство

Is cache enabled.
protected bool $cacheEnabled
Результат boolean

$cachePath защищенное свойство

Full path to cache directory.
protected string $cachePath
Результат string

$combine защищенное свойство

Combine option giving the opportunity not to combine the assets in debug mode.
protected bool $combine
Результат boolean

$controllers защищенное свойство

Map of controllers names and assets configuration.
protected array $controllers
Результат array

$debug защищенное свойство

Debug option that is passed to Assetic.
protected bool $debug
Результат boolean

$default защищенное свойство

Default options.
protected array $default
Результат array

$modules защищенное свойство

Map of modules names and assets configuration.
protected array $modules
Результат array

$rendererToStrategy защищенное свойство

Map of strategies that will be choose to setup Assetic\AssetInterface for particular Zend\View\Renderer\RendererInterface
protected array $rendererToStrategy
Результат array

$routes защищенное свойство

Map of routes names and assets configuration.
protected array $routes
Результат array

$umask защищенное свойство

Umask
protected null|int $umask
Результат null | integer

$webPath защищенное свойство

Full path to public directory where assets will be generated.
protected string $webPath
Результат string

$writeIfChanged защищенное свойство

Asset will be save on disk, only when it's modification time was changed
protected bool $writeIfChanged
Результат boolean