dialogik
dialogik

Reputation: 9552

Why does Symfony create a separate vendor folder in my root?

when I install Symfony according to the guide (option 1 with composer) it creates the folder structure as expected (and mentioned in that guide):

path/to/webroot/
    Symfony/
        app/
        src/
        vendor/
        web/

But in the root folder it also creates an empty vendor/ folder. In this vendor folder there is a subfolder named composer/.

path/to/webroot/
    Symfony/
    vendor/
        composer/

Both directories are empty (no hidden files). So two questions:

  1. Is this a required folder or is it kind of a bug that these folders are installed? Or may this be a directory for composer-specific files?
  2. Can I delete this folder without any danger?

Upvotes: 0

Views: 1711

Answers (1)

marcanuy
marcanuy

Reputation: 23972

That empty folder is generated when you don't pass the target-directory parameter to composer:

php composer.phar create-project vendor/project target-directory [version]

Upvotes: 2

Related Questions