PHP Class Bolt\Filesystem\Plugin\ThumbnailUrl

Author: Carson Full ([email protected])
Inheritance: implements Bolt\Filesystem\PluginInterface, use trait PluginTrait
Show file Open project: bolt/bolt Class Usage Examples

Protected Properties

Property Type Description
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface

Public Methods

Method Description
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator ) Constructor.
getMethod ( )
handle ( string $path, integer $width, integer $height, string $action ) : string Generate thumbnail url.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator )
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface

getMethod() public method

public getMethod ( )

handle() public method

Generate thumbnail url.
public handle ( string $path, integer $width, integer $height, string $action ) : string
$path string
$width integer
$height integer
$action string
return string

Property Details

$urlGenerator protected property

protected UrlGeneratorInterface,Symfony\Component\Routing\Generator $urlGenerator
return Symfony\Component\Routing\Generator\UrlGeneratorInterface