W3cubDocs

/Symfony 2.8

Symfony\Bundle\FrameworkBundle\Templating\Asset\PackageFactory

class PackageFactory

Creates packages based on whether the current request is secure.

Methods

__construct(ContainerInterface $container)
PackageInterface getPackage(Request $request, string $httpId, string $sslId)

Returns either the HTTP or SSL version of an asset package.

Details

public __construct(ContainerInterface $container)

Parameters

ContainerInterface $container

public PackageInterface getPackage(Request $request, string $httpId, string $sslId)

Returns either the HTTP or SSL version of an asset package.

Parameters

Request $request The current request
string $httpId The id for the package to use when the current request is HTTP
string $sslId The id for the package to use when the current request is SSL

Return Value

PackageInterface The package

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Bundle/FrameworkBundle/Templating/Asset/PackageFactory.html