netgusto/distribution-bundle

Symfony2 Project Distribution helper Bundle

v1.0.0 2014-06-06 15:19 UTC

This package is not auto-updated.

Last update: 2024-06-04 00:06:26 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.