作曲家创建项目symfony /骨架new_project“ 4.0”

时间:2018-08-08 18:26:48

标签: symfony installation composer-php

它安装:

Symfony 4.1.3(内核:src,环境:dev,调试:true)

如何准确安装4.0。*?

composer create-project symfony/skeleton new_project "4.0" Installing symfony/skeleton (v4.0.0)
  - Installing symfony/skeleton (v4.0.0): Loading from cache Created project in aaaa Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 22 installs, 0 updates, 0 removals
  - Installing symfony/flex (v1.0.89): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.9.0): Loading from cache
  - Installing symfony/console (v4.1.3): Loading from cache
  - Installing symfony/routing (v4.1.3): Loading from cache
  - Installing symfony/polyfill-ctype (v1.9.0): Loading from cache
  - Installing symfony/http-foundation (v4.1.3): Loading from cache
  - Installing symfony/event-dispatcher (v4.1.3): Loading from cache
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v4.1.3): Loading from cache
  - Installing symfony/http-kernel (v4.1.3): Loading from cache
  - Installing symfony/finder (v4.1.3): Loading from cache
  - Installing symfony/filesystem (v4.1.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/dependency-injection (v4.1.3): Loading from cache
  - Installing symfony/config (v4.1.3): Loading from cache
  - Installing psr/simple-cache (1.0.1): Loading from cache
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing symfony/cache (v4.1.3): Loading from cache
  - Installing symfony/framework-bundle (v4.1.3): Loading from cache
  - Installing symfony/yaml (v4.1.3): Loading from cache
  - Installing symfony/dotenv (v4.1.3): Loading from cache Writing lock file Generating autoload files Symfony operations: 4 recipes (df8c84407bbee5e3e826455e7bbdef65)
  - Configuring symfony/flex (>=1.0): From github.com/symfony/recipes:master
  - Configuring symfony/framework-bundle (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/console (>=3.3): From github.com/symfony/recipes:master
  - Configuring symfony/routing (>=4.0): From github.com/symfony/recipes:master 

执行脚本缓存:清除[确定] 执行脚本资产:安装公共[确定]

2 个答案:

答案 0 :(得分:1)

只需按原样安装:

composer create-project symfony/skeleton new_project 4.0

它将安装4.1.3,然后在composer.json symfony / framework-bundle中将其更改为“〜4.0.0”,然后进行composer更新

答案 1 :(得分:0)

尝试一下:

composer create-project symfony/skeleton new_project 4.0.*

composer文档中的更多信息-https://getcomposer.org/doc/03-cli.md#create-project

此外,不再维护Symfony 4.0。*。考虑升级到4.1