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.
Datei anzeigen
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
public __construct ( Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface $packages ) |
$packages |
Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface |
|
getMethod()
public method
Returns the public url/path of an asset.
Property Details
$packages protected_oe property
protected Packages,Symfony\Component\Asset|PackageInterface,Symfony\Component\Asset $packages |
return |
Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface |
|