PHP Class Bolt\Filesystem\Plugin\AssetUrl

If this plugin is given packages and the filesystem has a mount point it will be used as the package name for getting the url. For example: $fs = Bolt\Filesystem\Manager $fs->url('foo://bar.jpg'); Uses the package "foo" in the Packages class to generate url.
Inheritance: implements Bolt\Filesystem\PluginInterface, use trait PluginTrait
Show file Open project: bolt/bolt

Protected Properties

Property Type Description
$packages Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface

Public Methods

Method Description
__construct ( Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface $packages ) Constructor.
getMethod ( )
handle ( string $path ) : string Returns the public url/path of an asset.

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface $packages )
$packages Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface

getMethod() public method

public getMethod ( )

handle() public method

Returns the public url/path of an asset.
public handle ( string $path ) : string
$path string
return string

Property Details

$packages protected property

protected Packages,Symfony\Component\Asset|PackageInterface,Symfony\Component\Asset $packages
return Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface