前提:

官方 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. El 表达式和 Jstl 标签库

    El 表达式学习 1. 什么是 EL 表达式 全称:Expression Language,一种写法非常简介的表达式.语法简单易懂,便于使用.表达式语言的灵感来自于 ECMAScript 和XPath ...

  2. Java中的容器(集合)之ArrayList源码解析

    1.ArrayList源码解析 源码解析: 如下源码来自JDK8(如需查看ArrayList扩容源码解析请跳转至<Java中的容器(集合)>第十条):. package java.util ...

  3. Linux内核模块(Module)初解

    #include <linux/init.h> // __init __exit #include <linux/module.h> // module_init module ...

  4. 基于URL的正则匹配

    第一种的方式使用( <li><a target="_blank" href="/CC/detail/?nid={{ k}}">{{ ro ...

  5. 在Eclipse-jee-neon中配置springsource-tool-suite

    今天为大家展示如何在Eclipse-jee-neon中配置spring的插件(springsource-tool-suit): 打开Eclipse,查看自己的版本. Help –> About ...

  6. JVM Heap Memory和Native Memory

    JVM管理的内存可以总体划分为两部分:Heap Memory和Native Memory.前者我们比较熟悉,是供Java应用程序使用的:后者也称为C-Heap,是供JVM自身进程使用的.Heap Me ...

  7. CentOS7搭建Hadoop2.8.0集群及基础操作与测试

    环境说明 示例环境 主机名 IP 角色 系统版本 数据目录 Hadoop版本 master 192.168.174.200 nameNode CentOS Linux release 7.4.1708 ...

  8. C# 获得系统环境

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T ...

  9. [Luogu2014]选课(树形dp)

    [Luogu2014]选课 题目描述 在大学里每个学生,为了达到一定的学分,必须从很多课程里选择一些课程来学习,在课程里有些课程必须在某些课程之前学习,如高等数学总是在其它课程之前学习.现在有N门功课 ...

  10. wireshare文件格式

    你用Wireshark打开这个pkt试试,如果可以打开,就说明Wireshark支持这种格式.然后你就可以去看Wireshark的源码.*.pkt是omnipeek/etherpeek的默认文件格式, ...