PHP Class Hostnet\Component\Webpack\Asset\Compiler

Author: Harold Iedema ([email protected])
Datei anzeigen Open project: hostnet/webpack-bundle Class Usage Examples

Public Methods

Method Description
__construct ( Hostnet\Component\Webpack\Profiler\Profiler $profiler, Tracker $tracker, TwigParser $twig_parser, Hostnet\Component\Webpack\Configuration\ConfigGenerator $generator, Process $process, string $cache_dir, array $bundles, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
compile ( ) : string
getAliasId ( string $path ) : string Returns the alias id for the given path.

Private Methods

Method Description
addResolveConfig ( ) Adds root & alias configuration entries.
addSplitPoints ( ) Add split points to the 'entry' section of the configuration.

Method Details

__construct() public method

public __construct ( Hostnet\Component\Webpack\Profiler\Profiler $profiler, Tracker $tracker, TwigParser $twig_parser, Hostnet\Component\Webpack\Configuration\ConfigGenerator $generator, Process $process, string $cache_dir, array $bundles, Symfony\Component\Stopwatch\Stopwatch $stopwatch = null )
$profiler Hostnet\Component\Webpack\Profiler\Profiler
$tracker Tracker
$twig_parser TwigParser
$generator Hostnet\Component\Webpack\Configuration\ConfigGenerator
$process Symfony\Component\Process\Process
$cache_dir string
$bundles array
$stopwatch Symfony\Component\Stopwatch\Stopwatch

compile() public method

public compile ( ) : string
return string

getAliasId() public static method

Returns the alias id for the given path.
public static getAliasId ( string $path ) : string
$path string
return string