Hostnet\Component\Webpack\Asset\Tracker::__construct PHP Method

__construct() public method

Create new Tracker.
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 function __construct(Profiler $profiler, TemplateFinderInterface $finder, $root_dir, $asset_dir, $output_dir, array $bundle_paths = [])
    {
        $this->profiler = $profiler;
        $this->finder = $finder;
        $this->root_dir = $root_dir;
        $this->asset_dir = $asset_dir;
        $this->output_dir = $output_dir;
        $this->bundle_paths = $bundle_paths;
    }