netgusto / distribution-bundle
Symfony2 Project Distribution helper Bundle
Package info
github.com/netgusto/Symfony-DistributionBundle
Type:symfony-bundle
pkg:composer/netgusto/distribution-bundle
v1.0.0
2014-06-06 15:19 UTC
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.4
This package is not auto-updated.
Last update: 2026-03-10 08:40:35 UTC
README
Forwarding assets packages to web dir
In app/config.yaml
netgusto_distribution: assets_forwarding: dest_dir: ~ packages: - some/package - some/otherpackage
In composer.json
{
'...',
"scripts": {
"post-install-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
],
"post-update-cmd": [
'...',
"Netgusto\\DistributionBundle\\Composer\\ScriptHandler::forwardAssetsToWebDir"
]
},
'...',
}
In app/AppKernel.php
$bundles = array( // ... new Netgusto\DistributionBundle\NetgustoDistributionBundle(), // ... );
Packages will be forwarded to web/vendor at composer install, and at every composer update.