Lo-Dash Bundle for Symfony2
This is a legacy bundle dating back to when javascript packagers such as NPM or Bower didn't exist. No further updates to this bundle will be published, so please consider the bundle abandoned.
Lo-Dash v4.17.4
// composer.json
{
"require": {
// ...
"bmatzner/lodash-bundle": "~4.17"
}
}
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Bmatzner\LoDashBundle\BmatznerLoDashBundle(),
// ...
);
}
$ php composer.phar update bmatzner/lodash-bundle
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ php app/console assets:install --symlink web
Refer to the desired files in your HTML template, e.g.
<script type="text/javascript" src="{{ asset('bundles/bmatznerlodash/js/lodash.min.js') }}"></script>
Refer to the source code of the included files for license information