PHP Class AsseticBundle\View\Helper\Asset

Inheritance: extends Zend\View\Helper\Placeholder\Container\AbstractStandalone
Show file Open project: widmogrod/zf2-assetic-module

Protected Properties

Property Type Description
$basePath
$baseUrl
$service AsseticBundle\Service | null

Public Methods

Method Description
__construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
__invoke ( string $collectionName, array $options = [] ) : string

Protected Methods

Method Description
getScriptTag ( $path, array $options = [] ) : string
getStylesheetTag ( $path, array $options = [] ) : string
helper ( Assetic\Asset\AssetInterface $asset, array $options = [] ) : string
setupAsset ( Assetic\Asset\AssetInterface $asset, array $options = [] ) : string

Method Details

__construct() public method

public __construct ( Zend\ServiceManager\ServiceLocatorInterface $serviceLocator )
$serviceLocator Zend\ServiceManager\ServiceLocatorInterface

__invoke() public method

public __invoke ( string $collectionName, array $options = [] ) : string
$collectionName string
$options array
return string

getScriptTag() protected method

protected getScriptTag ( $path, array $options = [] ) : string
$path
$options array
return string

getStylesheetTag() protected method

protected getStylesheetTag ( $path, array $options = [] ) : string
$path
$options array
return string

helper() protected method

protected helper ( Assetic\Asset\AssetInterface $asset, array $options = [] ) : string
$asset Assetic\Asset\AssetInterface
$options array
return string

setupAsset() protected method

protected setupAsset ( Assetic\Asset\AssetInterface $asset, array $options = [] ) : string
$asset Assetic\Asset\AssetInterface
$options array
return string

Property Details

$basePath protected property

protected $basePath

$baseUrl protected property

protected $baseUrl

$service protected property

protected Service,AsseticBundle|null $service
return AsseticBundle\Service | null