private function configureWebpackAssets(ContainerBuilder $container, array $config): void
    {
        $assetsFile = $config['file'];
        $cacheId = $config['cache']['service_id'];
        $cacheKey = $config['cache']['key'];
        $cacheEnabled = $config['cache']['enabled'];
        $cacheEnabled = null !== $cacheEnabled
            ? $cacheEnabled
            : !$container->getParameter('kernel.debug');

        $container->setParameter('fxp_require_asset.webpack.adapter.assets.file', $assetsFile);
        $container->setParameter('fxp_require_asset.webpack.adapter.assets.cache_key', $cacheKey);

        if ($cacheEnabled) {
            $container->setAlias('fxp_require_asset.webpack.adapter.assets.cache', $cacheId);
        }
    }
private function configureWebpackAssets(ContainerBuilder $container, array $config): void
    {
        $assetsFile = $config['file'];
        $cacheId = $config['cache']['service_id'];
        $cacheKey = $config['cache']['key'];
        $cacheEnabled = $config['cache']['enabled'];
        $cacheEnabled = null !== $cacheEnabled
            ? $cacheEnabled
            : !$container->getParameter('kernel.debug');

        $container->setParameter('fxp_require_asset.webpack.adapter.assets.file', $assetsFile);
        $container->setParameter('fxp_require_asset.webpack.adapter.assets.cache_key', $cacheKey);

        if ($cacheEnabled) {
            $container->setAlias('fxp_require_asset.webpack.adapter.assets.cache', $cacheId);
        }
    }
private function configureWebpackAssets ( ContainerBuilder $ container , array $ config ) : void { $ assetsFile = $ config [ 'file' ] ; $ cacheId = $ config [ 'cache' ] [ 'service_id' ] ; $ cacheKey = $ config [ 'cache' ] [ 'key' ] ; $ cacheEnabled = $ config [ 'cache' ] [ 'enabled' ] ; $ cacheEnabled = null !== $ cacheEnabled ? $ cacheEnabled : ! $ container -> getParameter ( 'kernel.debug' ) ; $ container -> setParameter ( 'fxp_require_asset.webpack.adapter.assets.file' , $ assetsFile ) ; $ container -> setParameter ( 'fxp_require_asset.webpack.adapter.assets.cache_key' , $ cacheKey ) ; if ( $ cacheEnabled ) { $ container -> setAlias ( 'fxp_require_asset.webpack.adapter.assets.cache' , $ cacheId ) ; } }
Configure the webpack assets adapter.

@param ContainerBuilder $container The container
@param array            $config    The webpack config
Configure the webpack assets adapter .