netgusto / distribution-bundle
Symfony2 Project Distribution helper Bundle
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/netgusto/distribution-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.4
This package is not auto-updated.
Last update: 2025-10-21 06:58:08 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.