netgusto / distribution-bundle
Symfony2 Project Distribution helper Bundle
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- symfony/framework-bundle: ~2.4
This package is not auto-updated.
Last update: 2024-12-17 02:40:31 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
.