Method | Description | |
---|---|---|
__construct ( Hostnet\Component\Webpack\Profiler\Profiler $profiler, Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinderInterface $finder, string $root_dir, string $asset_dir, string $output_dir, array $bundle_paths = [] ) | Create new Tracker. | |
addPath ( string $path ) : |
Add a path to the list of tracked paths (this can be both dir's or files). | |
getAliases ( ) : array | Get the tracked aliases | |
getTemplates ( ) : string[] | Returns a list of twig templates that are being tracked. | |
isOutdated ( ) : boolean | Returns true if the cache is outdated. | |
resolveResourcePath ( string $path ) : string | Find the full path to a requested resource, this can be bundle configurations like @BundleName/resource.twig |
Method | Description | |
---|---|---|
addTemplate ( Symfony\Component\Templating\TemplateReferenceInterface $reference ) : |
Adds twig templates to the tracker. | |
boot ( ) | Runtime initialize this tracker. | |
resolvePath ( string $path ) : string | Find the full path to a requested path, this can be bundle configurations like @BundleName/ |
public __construct ( Hostnet\Component\Webpack\Profiler\Profiler $profiler, Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinderInterface $finder, string $root_dir, string $asset_dir, string $output_dir, array $bundle_paths = [] ) | ||
$profiler | Hostnet\Component\Webpack\Profiler\Profiler | key-value store used to present 'logging' in the symfony-profiler bar. |
$finder | Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinderInterface | used to find all the templates which needs to be tracked. |
$root_dir | string | '%kernel.root_dir%' root directory of the application. |
$asset_dir | string | directory to resolve assets, directory is resolved relative from the bundle path. |
$output_dir | string | The directory where the compiled resources are stored. |
$bundle_paths | array | the optional associative mapping between bundle names and their absolute paths. |
public getAliases ( ) : array | ||
return | array | the tracked aliases. |
public getTemplates ( ) : string[] | ||
return | string[] | list of twig templates. |
public isOutdated ( ) : boolean | ||
return | boolean | true, cache is outdated of non exsitant. |
public resolveResourcePath ( string $path ) : string | ||
$path | string | the path resolve |
return | string | the full path to the requested resource or false if not found. |