Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Install command uses static "web" directory #8

Closed
sebastianneubert opened this issue Jun 6, 2014 · 1 comment
Closed

Install command uses static "web" directory #8

sebastianneubert opened this issue Jun 6, 2014 · 1 comment
Labels

Comments

@sebastianneubert
Copy link

Hi,

I'm not sure, if I'm here in the right place. I use the bootstrap bundle from packagist and want to use the install command for installing glyphicons.

    "scripts": {
        "post-install-cmd": [
            "Braincrafted\\Bundle\\BootstrapBundle\\Composer\\ScriptHandler::install"
    ]}

I found a hard copied string in the InstallCommand.php of the bundle. So my composer install fails, because my apache root dir isn't called "web".

         /* protected function class InstallCommand::getDestDir() */
        return sprintf(
            '%s/../web/%sfonts',
            $this->getContainer()->getParameter('kernel.root_dir'),
            $outputDir
        );

The output_dir configuration just put an extra string to the web dir. I expect, that I could use something like this in the config.yml:

braincrafted_bootstrap:
    less_filter: lessphp
    output_dir: %kernel.root_dir%/../htdocs
    assets_dir: %kernel.root_dir%/../vendor/twbs/bootstrap

Can I fork the bundle anywhere and use my own or change the code and send you a pull request?

Kind regards,
Sebastian

@florianeckerstorfer
Copy link
Member

This should be in the braincrafted/bootstrap-bundle repo. And there this issue already exists: braincrafted/bootstrap-bundle#242

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants