PackageInterface deprecated

PackageInterface deprecated

interface PackageInterface

deprecated

since 2.7, will be removed in 3.0. Use the Asset component instead.

Asset package interface.

Methods

string getVersion()

Returns the asset package version.

string getUrl(string $path, string|bool|null $version = null)

Returns an absolute or root-relative public path.

Details

string getVersion()

Returns the asset package version.

Return Value

string The version string

string getUrl(string $path, string|bool|null $version = null)

Returns an absolute or root-relative public path.

Parameters

string $path A path
string|bool|null $version A specific version for the path

Return Value

string The public path

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Templating/Asset/PackageInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部