Symfony\Bundle\AsseticBundle\Routing\AsseticLoader
Loads routes for all assets.
Assets should only be served through the routing system for ease-of-use
during development.
For example, add the following to your application's routing_dev.yml:
_assetic:
resource: .
type: assetic
In a production environment you should use the `assetic:dump` command to
create static asset files.
- Author: Kris Wallsmith <kris@symfony.com>
Synopsis
class AsseticLoader
extends Loader
{
- // members
- protected $am;
- // Inherited members from Loader
- protected $resolver;
- // methods
- public void __construct()
- public void load()
- private void loadRouteForAsset()
- public void supports()
- // Inherited methods from Loader
- public LoaderResolverInterface getResolver()
- public void setResolver()
- public mixed import()
- public LoaderInterface resolve()
Hierarchy
Members
protected
- $am
- $resolver
Methods
private
- loadRouteForAsset() — Loads a route to serve an supplied asset.
public
Inherited from Symfony\Component\Config\Loader\Loader
public
- getResolver() — Gets the loader resolver.
- import() — Imports a resource.
- resolve() — Finds a loader able to load an imported resource.
- setResolver() — Sets the loader resolver.