PHP Class AsseticBundle\Configuration

Afficher le fichier Open project: widmogrod/zf2-assetic-module Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
assembleSetterNameFromConfigKey ( $key )
processArray ( $config )

Method Details

__construct() public méthode

public __construct ( $config = null )

addModule() public méthode

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

addRendererToStrategy() public méthode

public addRendererToStrategy ( $rendererClass, $strategyClass )

assembleSetterNameFromConfigKey() protected méthode

protected assembleSetterNameFromConfigKey ( $key )

detectBaseUrl() public méthode

public detectBaseUrl ( )

getAcceptableErrors() public méthode

public getAcceptableErrors ( )

getBasePath() public méthode

public getBasePath ( ) : null | string
Résultat null | string

getBaseUrl() public méthode

public getBaseUrl ( )

getBuildOnRequest() public méthode

public getBuildOnRequest ( ) : boolean
Résultat boolean

getCacheEnabled() public méthode

public getCacheEnabled ( )

getCachePath() public méthode

public getCachePath ( )

getController() public méthode

public getController ( $name, $default = null )

getControllers() public méthode

public getControllers ( )

getDefault() public méthode

public getDefault ( )

getModule() public méthode

public getModule ( $name, $default = null )

getModules() public méthode

public getModules ( )

getRoute() public méthode

public getRoute ( $name, $default = null )

getRoutes() public méthode

public getRoutes ( )

getStrategyNameForRenderer() public méthode

public getStrategyNameForRenderer ( $rendererName, $default = null )

getUmask() public méthode

public getUmask ( ) : integer | null
Résultat integer | null

getWebPath() public méthode

public getWebPath ( $file = null )

getWriteIfChanged() public méthode

public getWriteIfChanged ( ) : boolean
Résultat boolean

isCombine() public méthode

public isCombine ( )

isDebug() public méthode

public isDebug ( )

processArray() protected méthode

protected processArray ( $config )

setAcceptableErrors() public méthode

public setAcceptableErrors ( array $acceptableErrors )
$acceptableErrors array

setBasePath() public méthode

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

setBaseUrl() public méthode

public setBaseUrl ( $baseUrl )

setBuildOnRequest() public méthode

public setBuildOnRequest ( boolean $flag )
$flag boolean

setCacheEnabled() public méthode

public setCacheEnabled ( $cacheEnabled )

setCachePath() public méthode

public setCachePath ( $path )

setCombine() public méthode

public setCombine ( $flag )

setControllers() public méthode

public setControllers ( array $controllers )
$controllers array

setDebug() public méthode

public setDebug ( $flag )

setDefault() public méthode

public setDefault ( array $default )
$default array

setModules() public méthode

public setModules ( array $modules )
$modules array

setRendererToStrategy() public méthode

public setRendererToStrategy ( array $strategyForRenderer )
$strategyForRenderer array

setRoutes() public méthode

public setRoutes ( array $routes )
$routes array

setUmask() public méthode

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

setWebPath() public méthode

public setWebPath ( $path )

setWriteIfChanged() public méthode

public setWriteIfChanged ( boolean $flag )
$flag boolean

Property Details

$acceptableErrors protected_oe property

List of error types occurring in EVENT_DISPATCH_ERROR that will use this module to render assets.
protected array $acceptableErrors
Résultat array

$basePath protected_oe property

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBasePath()" Example: /~jdo/
protected string|null $basePath
Résultat string | null

$baseUrl protected_oe property

By default this value is set from "\Zend\Http\PhpEnvironment\Request::getBaseUrl()" Example: http://example.com/
protected string|null $baseUrl
Résultat string | null

$buildOnRequest protected_oe property

Should build assets on request.
protected bool $buildOnRequest
Résultat boolean

$cacheEnabled protected_oe property

Is cache enabled.
protected bool $cacheEnabled
Résultat boolean

$cachePath protected_oe property

Full path to cache directory.
protected string $cachePath
Résultat string

$combine protected_oe property

Combine option giving the opportunity not to combine the assets in debug mode.
protected bool $combine
Résultat boolean

$controllers protected_oe property

Map of controllers names and assets configuration.
protected array $controllers
Résultat array

$debug protected_oe property

Debug option that is passed to Assetic.
protected bool $debug
Résultat boolean

$default protected_oe property

Default options.
protected array $default
Résultat array

$modules protected_oe property

Map of modules names and assets configuration.
protected array $modules
Résultat array

$rendererToStrategy protected_oe property

Map of strategies that will be choose to setup Assetic\AssetInterface for particular Zend\View\Renderer\RendererInterface
protected array $rendererToStrategy
Résultat array

$routes protected_oe property

Map of routes names and assets configuration.
protected array $routes
Résultat array

$umask protected_oe property

Umask
protected null|int $umask
Résultat null | integer

$webPath protected_oe property

Full path to public directory where assets will be generated.
protected string $webPath
Résultat string

$writeIfChanged protected_oe property

Asset will be save on disk, only when it's modification time was changed
protected bool $writeIfChanged
Résultat boolean