PHP Класс 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.
Наследование: implements Bolt\Filesystem\PluginInterface, use trait PluginTrait
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$packages Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface

Открытые методы

Метод Описание
__construct ( Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface $packages ) Constructor.
getMethod ( )
handle ( string $path ) : string Returns the public url/path of an asset.

Описание методов

__construct() публичный метод

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

getMethod() публичный метод

public getMethod ( )

handle() публичный метод

Returns the public url/path of an asset.
public handle ( string $path ) : string
$path string
Результат string

Описание свойств

$packages защищенное свойство

protected Packages,Symfony\Component\Asset|PackageInterface,Symfony\Component\Asset $packages
Результат Symfony\Component\Asset\Packages | Symfony\Component\Asset\PackageInterface