- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在官方文档中,它说这是第一步
$ Composer 需要friendsofsymfony/user-bundle“~2.0”
这会返回给我这个错误
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.2
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.1
- Conclusion: don't install friendsofsymfony/user-bundle v2.1.0
- Conclusion: don't install friendsofsymfony/user-bundle v2.0.2
- Conclusion: don't install friendsofsymfony/user-bundle v2.0.1
- Conclusion: remove paragonie/random_compat v9.99.99
- Installation request for friendsofsymfony/user-bundle ~2.0 -> satisfiable by friendsofsymfony/user-bundle[v2.0.0, v2.0.1, v2.0.2, v2.1.0, v2.1.1, v2.1.2].
- Conclusion: don't install paragonie/random_compat v9.99.99
- friendsofsymfony/user-bundle v2.0.0 requires paragonie/random_compat ^1 || ^2 -> satisfiable by paragonie/random_compat[1.0.10, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, v1.0.0, v1.0.1, v1.2.0, v1.2.1, v1.2.2, v1.2.3, v1.3.0, v1.3.1, v1.4.0, v1.4.1, v1.4.2, v1.4.3, v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9].
- Can only install one of: paragonie/random_compat[1.0.10, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.2, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.3, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.4, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.5, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.6, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.7, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.8, v9.99.99].
- Can only install one of: paragonie/random_compat[1.0.9, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.0, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.1, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.2, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.3, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.4, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.5, v9.99.99].
- Can only install one of: paragonie/random_compat[1.1.6, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.0.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.0.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.2.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.2.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.2.2, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.2.3, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.3.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.3.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.4.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.4.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.4.2, v9.99.99].
- Can only install one of: paragonie/random_compat[v1.4.3, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.0, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.1, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.10, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.11, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.12, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.13, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.14, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.15, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.16, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.17, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.2, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.3, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.4, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.5, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.6, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.7, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.8, v9.99.99].
- Can only install one of: paragonie/random_compat[v2.0.9, v9.99.99].
- Installation request for paragonie/random_compat (locked at v9.99.99) -> satisfiable by paragonie/random_compat[v9.99.99].
Installation failed, reverting ./composer.json to its original content.
这是我安装的 bundle 的列表
behat/transliterator v1.2.0 String transliterator
cocur/slugify v3.1 Converts a string into a slug.
composer/ca-bundle 1.1.2 Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
doctrine/annotations v1.6.0 Docblock Annotations Parser
doctrine/cache v1.7.1 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.5.0 Collections Abstraction library
doctrine/common v2.9.0 Common Library for Doctrine projects
doctrine/dbal v2.8.0 Database Abstraction Layer
doctrine/doctrine-bundle 1.9.1 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle 1.3.3 Symfony Bundle for Doctrine Cache
doctrine/event-manager v1.0.0 Doctrine Event Manager component
doctrine/inflector v1.3.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.1.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm v2.6.2 Object-Relational-Mapper for PHP
doctrine/persistence v1.0.0 Doctrine Persistence abstractions.
doctrine/reflection v1.0.0 Doctrine Reflection component
fig/link-util 1.0.0 Common utility implementations for HTTP links
gedmo/doctrine-extensions v2.4.36 Doctrine2 behavioral extensions
incenteev/composer-parameter-handler v2.1.3 Composer script handling your ignored parameter file
jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library
knplabs/knp-menu 2.3.0 An object oriented menu library
knplabs/knp-menu-bundle v2.2.1 This bundle provides an integration of the KnpMenu library
monolog/monolog 1.23.0 Sends your logs to files, sockets, inboxes, databases and various web services
paragonie/random_compat v9.99.99 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/link 1.0.0 Common interfaces for HTTP links
psr/log 1.0.2 Common interface for logging libraries
psr/simple-cache 1.0.1 Common interfaces for simple caching
sensio/distribution-bundle v5.0.22 Base bundle for Symfony Distributions
sensio/framework-extra-bundle v5.2.0 This bundle provides a way to configure your controllers with annotations
sensio/generator-bundle v3.1.7 This bundle generates code for you
sensiolabs/security-checker v4.1.8 A security checker for your composer.lock
sonata-project/admin-bundle 3.38.0 The missing Symfony Admin Generator
sonata-project/block-bundle 3.12.1 Symfony SonataBlockBundle
sonata-project/cache 2.0.1 Cache library
sonata-project/core-bundle 3.11.2 Symfony SonataCoreBundle
sonata-project/datagrid-bundle 2.3.1 Symfony SonataDatagridBundle
sonata-project/doctrine-orm-admin-bundle 3.6.1 Symfony Sonata / Integrate Doctrine ORM into the SonataAdminBundle
sonata-project/exporter 1.9.1 Lightweight Exporter library
sonata-project/intl-bundle 2.5.0 Symfony SonataIntlBundle
stof/doctrine-extensions-bundle v1.3.0 Integration of the gedmo/doctrine-extensions with Symfony2
swiftmailer/swiftmailer v5.4.12 Swiftmailer, free feature-rich PHP mailer
symfony/asset v4.1.3 Symfony Asset Component
symfony/monolog-bundle v3.3.0 Symfony MonologBundle
symfony/phpunit-bridge v3.4.14 Symfony PHPUnit Bridge
symfony/polyfill-apcu v1.9.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-ctype v1.9.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-icu v1.9.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring v1.9.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.9.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.9.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util v1.9.0 Symfony utilities for portability of PHP codes
symfony/security-acl v3.0.1 Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle v2.6.7 Symfony SwiftmailerBundle
symfony/symfony v3.4.14 The Symfony PHP framework
twig/extensions v1.5.2 Common additional features for Twig that do not directly belong in core
twig/twig v2.5.0 Twig, the flexible, fast, and secure template language for PHP
最佳答案
这是一个已知错误,因为 random_compat
库最近由于某种原因更新为奇怪的 9.99.99
版本,并且包的依赖项声明错误。您可以做的是在您自己的项目中明确要求 ^2.0
版本。
运行:
composer require paragonie/random_compat ^2.0
或者您可以使用
修改composer.json"require": {
...
"paragonie/random_compat": "^2.0",
...
},
然后,正常安装您的 bundle 。
关于symfony - 在 symfony 3.4 上安装 FOSUserBundle 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51881511/
SQLite、Content provider 和 Shared Preference 之间的所有已知区别。 但我想知道什么时候需要根据情况使用 SQLite 或 Content Provider 或
警告:我正在使用一个我无法完全控制的后端,所以我正在努力解决 Backbone 中的一些注意事项,这些注意事项可能在其他地方更好地解决......不幸的是,我别无选择,只能在这里处理它们! 所以,我的
我一整天都在挣扎。我的预输入搜索表达式与远程 json 数据完美配合。但是当我尝试使用相同的 json 数据作为预取数据时,建议为空。点击第一个标志后,我收到预定义消息“无法找到任何内容...”,结果
我正在制作一个模拟 NHL 选秀彩票的程序,其中屏幕右侧应该有一个 JTextField,并且在左侧绘制弹跳的选秀球。我创建了一个名为 Ball 的类,它实现了 Runnable,并在我的主 Draf
这个问题已经有答案了: How can I calculate a time span in Java and format the output? (18 个回答) 已关闭 9 年前。 这是我的代码
我有一个 ASP.NET Web API 应用程序在我的本地 IIS 实例上运行。 Web 应用程序配置有 CORS。我调用的 Web API 方法类似于: [POST("/API/{foo}/{ba
我将用户输入的时间和日期作为: DatePicker dp = (DatePicker) findViewById(R.id.datePicker); TimePicker tp = (TimePic
放宽“邻居”的标准是否足够,或者是否有其他标准行动可以采取? 最佳答案 如果所有相邻解决方案都是 Tabu,则听起来您的 Tabu 列表的大小太长或您的释放策略太严格。一个好的 Tabu 列表长度是
我正在阅读来自 cppreference 的代码示例: #include #include #include #include template void print_queue(T& q)
我快疯了,我试图理解工具提示的行为,但没有成功。 1. 第一个问题是当我尝试通过插件(按钮 1)在点击事件中使用它时 -> 如果您转到 Fiddle,您会在“内容”内看到该函数' 每次点击都会调用该属
我在功能组件中有以下代码: const [ folder, setFolder ] = useState([]); const folderData = useContext(FolderContex
我在使用预签名网址和 AFNetworking 3.0 从 S3 获取图像时遇到问题。我可以使用 NSMutableURLRequest 和 NSURLSession 获取图像,但是当我使用 AFHT
我正在使用 Oracle ojdbc 12 和 Java 8 处理 Oracle UCP 管理器的问题。当 UCP 池启动失败时,我希望关闭它创建的连接。 当池初始化期间遇到 ORA-02391:超过
关闭。此题需要details or clarity 。目前不接受答案。 想要改进这个问题吗?通过 editing this post 添加详细信息并澄清问题. 已关闭 9 年前。 Improve
引用这个plunker: https://plnkr.co/edit/GWsbdDWVvBYNMqyxzlLY?p=preview 我在 styles.css 文件和 src/app.ts 文件中指定
为什么我的条形这么细?我尝试将宽度设置为 1,它们变得非常厚。我不知道还能尝试什么。默认厚度为 0.8,这是应该的样子吗? import matplotlib.pyplot as plt import
当我编写时,查询按预期执行: SELECT id, day2.count - day1.count AS diff FROM day1 NATURAL JOIN day2; 但我真正想要的是右连接。当
我有以下时间数据: 0 08/01/16 13:07:46,335437 1 18/02/16 08:40:40,565575 2 14/01/16 22:2
一些背景知识 -我的 NodeJS 服务器在端口 3001 上运行,我的 React 应用程序在端口 3000 上运行。我在 React 应用程序 package.json 中设置了一个代理来代理对端
我面临着一个愚蠢的问题。我试图在我的 Angular 应用程序中延迟加载我的图像,我已经尝试过这个2: 但是他们都设置了 src attr 而不是 data-src,我在这里遗漏了什么吗?保留 d
我是一名优秀的程序员,十分优秀!