前提:

官方 https://symfony.com/doc/master/cmf/quick_tour/the_big_picture.html#setting-up-the-database

由于

$ composer create-project symfony-cmf/sandbox cmf-sandbox
报错因此按照以下命令执行(上篇https://www.cnblogs.com/Amos-Turing/p/11541573.html)

https://github.com/symfony-cmf/standard-edition/releases

1:

composer create-project --ignore-platform-reqs symfony-cmf/sandbox cmf-sandbox

或者(我执行下面的成功了 参考:https://stackoverflow.com/questions/54000039/installing-symfony-project-with-php-7-3-version

composer create-project --ignore-platform-reqs --stability=dev symfony-cmf/sandbox:dev-master cmf-sandbox

执行后如下:

Installing symfony-cmf/sandbox (2.0.0)
- Installing symfony-cmf/sandbox (2.0.0): Loading from cache
Created project in cmf-sandbox
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 111 installs, 0 updates, 0 removals
- Installing twig/twig (v1.34.4): Loading from cache
- Installing symfony/polyfill-util (v1.5.0): Loading from cache
- Installing paragonie/random_compat (v2.0.10): Loading from cache
- Installing symfony/polyfill-php70 (v1.5.0): Loading from cache
- Installing symfony/polyfill-php56 (v1.5.0): Loading from cache
- Installing symfony/polyfill-mbstring (v1.5.0): Loading from cache
- Installing symfony/symfony (v3.3.6): Loading from cache

。。。。

Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
locale (en):
locales ([en, fr, de]):
secret (ThisTokenIsNotSoSecretChangeIt): dsfkdsahflkdsahfkdsafjdsafkdsajfh
coffee.extension (\.coffee-disabled$):
coffee.bin (''):
coffee.node (''):
database_driver (pdo_sqlite):
database_host (null):
database_port (null):
database_name (null):
database_user (null):
database_password (null):
database_path ('%kernel.root_dir%/../var/app.sqlite'):
mailer_transport (smtp):
mailer_host (localhost):
mailer_user (null):
mailer_password (null):
Creating the "app/config/phpcr.yml" file
Some parameters are missing. Please provide them.
phpcr_backend ({ logging: true, profiling: true, type: doctrinedbal, connection:
default, caches: { meta: doctrine_cache.providers.phpcr_meta, nodes: doctrine_c
ache.providers.phpcr_nodes }, parameters: { jackalope.check_login_on_server: fal
se } }):
phpcr_workspace (default):
phpcr_user (admin):
phpcr_pass (admin):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorException: W
arning: count(): Parameter must be an array or an object that implements Countab
le in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\routi
ng\src\ChainRouter.php:
Stack trace:
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\routing\
src\ChainRouter.php(): Symfony\Cmf\Component\Routing\ChainRouter->all()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDebugPr
ojectContainer.php(): Symfony\Cmf\Component\Routing\ChainRouter->setContext(
Object(Symfony\Component\Routing\RequestContext))
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony\symfony\src\
Symfony\Component\DependencyInjection\Container.php(): appDevDebugProjectCont
ainer->getCmfRouting_RouterService()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDebugPr
ojectContainer.php(): Symfony\Component\DependencyInjection\Container->get('
cmf_routing.rou...')
# E:\_My_File in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfo
ny-cmf\routing\src\ChainRouter.php on line
PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorExcepti
on: Warning: count(): Parameter must be an array or an object that implements Co
untable in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\
routing\src\ChainRouter.php:
Stack trace:
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\routing\
src\ChainRouter.php(): Symfony\Cmf\Component\Routing\ChainRouter->all()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDebugPr
ojectContainer.php(): Symfony\Cmf\Component\Routing\ChainRouter->setContext(
Object(Symfony\Component\Routing\RequestContext))
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony\symfony\src\
Symfony\Component\DependencyInjection\Container.php(): appDevDebugProjectCont
ainer->getCmfRouting_RouterService()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDebugPr
ojectContainer.php(): Symfony\Component\DependencyInjection\Container->get('
cmf_routing.rou...')
# E:\_My_File in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfo
ny-cmf\routing\src\ChainRouter.php on line
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handl
ing the post-install-cmd event terminated with an exception [RuntimeException]
An error occurred when executing the ""cache:clear --no-warmup"" command: Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorExcepti
on: Warning: count(): Parameter must be an array or an object that implemen
ts Countable in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\sy
mfony-cmf\routing\src\ChainRouter.php:
Stack trace:
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\rou
ting\src\ChainRouter.php(): Symfony\Cmf\Component\Routing\ChainRouter->a
ll()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDe
bugProjectContainer.php(): Symfony\Cmf\Component\Routing\ChainRouter->s
etContext(Object(Symfony\Component\Routing\RequestContext))
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony\symfony
\src\Symfony\Component\DependencyInjection\Container.php(): appDevDebugP
rojectContainer->getCmfRouting_RouterService()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDe
bugProjectContainer.php(): Symfony\Component\DependencyInjection\Contai
ner->get('cmf_routing.rou...')
# E:\_My_File in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\
symfony-cmf\routing\src\ChainRouter.php on line PHP Fatal error: Uncaught Symfony\Component\Debug\Exception\ContextErrorEx
ception: Warning: count(): Parameter must be an array or an object that imp
lements Countable in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vend
or\symfony-cmf\routing\src\ChainRouter.php:
Stack trace:
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony-cmf\rou
ting\src\ChainRouter.php(): Symfony\Cmf\Component\Routing\ChainRouter->a
ll()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDe
bugProjectContainer.php(): Symfony\Cmf\Component\Routing\ChainRouter->s
etContext(Object(Symfony\Component\Routing\RequestContext))
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\symfony\symfony
\src\Symfony\Component\DependencyInjection\Container.php(): appDevDebugP
rojectContainer->getCmfRouting_RouterService()
# E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\var\cache\dev\appDevDe
bugProjectContainer.php(): Symfony\Component\DependencyInjection\Contai
ner->get('cmf_routing.rou...')
# E:\_My_File in E:\_My_File_____\_work\MyCode\Symfony\cmf-sandbox\vendor\
symfony-cmf\routing\src\ChainRouter.php on line create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--r
epository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no
-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vc
s] [--remove-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<dir
ectory>] [<version>]

建议大家使用php7.1

然后按照官方教程执行

https://symfony.com/doc/master/cmf/quick_tour/the_big_picture.html#setting-up-the-database

从零开始创建 symfony-cmf的更多相关文章

  1. 用Python从零开始创建区块链

    本文主要内容翻译自Learn Blockchains by Building One 本文原始链接,转载请注明出处. 作者认为最快的学习区块链的方式是自己创建一个,本文就跟随作者用Python来创建一 ...

  2. 用spring boot 2从零开始创建区块链

    区块链这么火的技术,大java怎能落后,所以有了本文,主要代码参考自 Learn Blockchains by Building One , 中文翻译:用Python从零开始创建区块链 . 一.区块链 ...

  3. (2/2) 为了理解 UWP 的启动流程,我从零开始创建了一个 UWP 程序

    每次使用 Visual Studio 的模板创建一个 UWP 程序,我们会在项目中发现大量的项目文件.配置.应用启动流程代码和界面代码.然而这些文件在 UWP 程序中到底是如何工作起来的? 我从零开始 ...

  4. (1/2) 为了理解 UWP 的启动流程,我从零开始创建了一个 UWP 程序

    每次使用 Visual Studio 的模板创建一个 UWP 程序,我们会在项目中发现大量的项目文件.配置.应用启动流程代码和界面代码.然而这些文件在 UWP 程序中到底是如何工作起来的? 我从零开始 ...

  5. fir.im Weekly - 从零开始创建 Android 新项目

    今年的 Google I/O 大会上,人工智能和虚拟现实的产品发布让我们对未来多了几分惊喜.对于开发者部分,Google 发布了 Android N 系统,感受最深的是全新的 Android Stud ...

  6. truffle init 从零开始创建简单DApp项目

    下面的部分软件需要FQ.这里默认你已经会***,不懂的可以自己搜索解决. 软件安装 chrome浏览器 下载地址 metamask插件 在谷歌应用商店中搜索metamask ganche(图形版) 下 ...

  7. 《30天学习30种新技术》-Day 15:Meteor —— 从零开始创建一个 Web 应用

    目录:https://segmentfault.com/a/1190000000349384 原文: https://segmentfault.com/a/1190000000361440 到目前为止 ...

  8. 从零开始创建一个 PHP 扩展

    创建一个扩展的基本步骤都有哪些.示例中,我们将实现如下功能: <?phpecho say();?> 输出内容: $ php ./test.php$ hello word 在扩展中实现一个s ...

  9. 从零开始创建CocoaPods私有库

    为什么要创建CocoaPods私有库? 避免重复的造轮子 节约时间,方便管理自己的代码 精益求精 创建CocoaPods私有库 1.创建私有仓库工程 执行命令pod lib create SmartB ...

随机推荐

  1. 《剑指offer》面试题13 在O(1)时间删除链表节点 Java版

    这道题的关键是知道找到尾节点的前一个节点必须遍历,而且这样做了之后总的时间复杂度还是O(1),以及如何不破坏链表删除一个已知节点 public ListNode delete(ListNode hea ...

  2. Codeforces 601B(贪心+斜率+组合数学+单调栈)

    题面 传送门 题目大意: L(h)的值是区间[L,R]内,abs(h[i]-h[j])/(i-j)的最大值.现在有q个询问,每个询问表示询问区间[L,R]内,所有子序列的L(h)的值的和 分析 将|h ...

  3. CSS的重用

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  4. Linux查看当前目录下所有文件中包含map的行记录

    find yaochi_e.prm |xargs grep -ri "map" grep -n "map" *.prm|grep -v "\-\-ma ...

  5. mysql语句之DDL

    SQL分类: DDL(Data Definition Languages)语句:数据定义语言,这些语句定义了不同的数据段.数据库.表.列.索引等数据库对象的定义.常用的语句关键字主要包括create. ...

  6. java.lang.NoClassDefFoundError: javax/transaction/Synchronization

    转自:https://blog.csdn.net/andsionok/article/details/68490848 今天在整合ssh框架中 程序报告Java.lang.NoClassDefFoun ...

  7. vue报错TypeError: Cannot read property 'protocol' of undefined

    错误信息如下所示: isURLSameOrigin.js?3934:57 Uncaught (in promise) TypeError: Cannot read property 'protocol ...

  8. JS window对象 返回前一个浏览的页面 back()方法

    JS window对象 返回前一个浏览的页面 back()方法,加载 history 列表中的前一个 URL. 语法: window.history.back();   返回前一个浏览的页面 back ...

  9. thinkphp 数据库连接报错 SQLSTATE[HY000] [2002] No such file or directory

    https://blog.csdn.net/tornge/article/details/51388233 找到mysql sokcet的路径 vim /etc/mysql/mysql.conf.d/ ...

  10. vue 打包上线后 所使用的css3渐变属性丢失的问题解决方案

    最近在做vue项目的时候用到了css3渐变属性,本地跑项目没问题,但是打包放到服务器后发现这个属性丢失了.如下图: .join{ position:absolute; left:1rem; botto ...