看看全新安装后的默认目录结构。这正是你想要的!不知道您或您的开发人员在做什么,您在 composer.json 旁边有一个 Symfony 文件夹
您编码的所有内容都位于src/
composer.json 旁边的目录
下 您配置的所有内容都位于该app/config/
目录下。
symfony 框架本身没有任何东西,但它依赖于 symfony。
编辑:用作曲家安装 symfony 标准版:
php composer.phar create-project symfony/framework-standard-edition path/ 2.2.1
这是结果:
/path/to/symfony
+---- app/ # The app directory where the configuration and autoloader lives
+---- bin/ # Binaries, don't ask me ;)
+---- composer.json # Your dependency management
+---- composer.lock # Your version lock file
+---- LICENSE # License file
+---- README.md # You should read this
+---- src/ # Where YOUR CODE and your bundles lives!
+---- UPGRADE-2.2.md # Upgrade infos
+---- UPGRADE.md # Upgrade infos
+---- vendor/ # The vendor directory, where the symfony components and bundles,
| # as other bundles and libraries are. Not for VCS.
+---- web/ # web files, should be the DocumentRoot of the webserver.