PathPackage::getUrl()

string getUrl(string $path) Returns an absolute or root-relative public path. Parameters string $path A path Return Value string The public path

PathPackage::getBasePath()

string getBasePath() Returns the base path. Return Value string The base path

PathPackage deprecated::getUrl()

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

PathPackage deprecated::getBasePath()

string getBasePath() Returns the base path. Return Value string The base path

PathPackage deprecated

class PathPackage extends Package deprecated since 2.7, will be removed in 3.0. Use the Asset component instead. The path packages adds a version and a base path to asset URLs. Methods __construct(string $basePath = null, string $version = null, string $format = null) Constructor. string getVersion() Returns the asset package version. from Package string getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. string getBa

PathPackage deprecated

class PathPackage extends PathPackage deprecated since 2.7, will be removed in 3.0. Use the Asset component instead. The path packages adds a version and a base path to asset URLs. Methods __construct(Request $request, string $version = null, string $format = null) Constructor. string getVersion() Returns the asset package version. from Package string getUrl(string $path, string|bool|null $version = null) Returns an absolute or root-relative public path. from PathPackage s

PathPackage

class PathPackage extends Package Package that adds a base path to asset URLs in addition to a version. In addition to the provided base path, this package also automatically prepends the current request base path if a Context is available to allow a website to be hosted easily under any given path under the Web Server root directory. Methods __construct($basePath, VersionStrategyInterface $versionStrategy, ContextInterface $context = null) string getVersion(string $path) Returns t

PathFilterIterator

class PathFilterIterator extends MultiplePcreFilterIterator PathFilterIterator filters files by path patterns (e.g. some/special/dir). Methods rewind() This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases. from FilterIterator __construct(Iterator $iterator, array $matchPatterns, array $noMatchPatterns) Constructor. from MultiplePcreFilterIterator bool accept() Filters the iterator values. Details

PasswordType::getParent()

string|null getParent() Returns the name of the parent type. Return Value string|null The name of the parent type if any, null otherwise

PasswordType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block name