我在Symfony 5中启动了一个新项目,并尝试使用composer require easycorp/easyadmin-bundle安装EasyAdmin,但我发现了一个问题。 Composer日志: ./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to
我目前正面临一个问题,在我的Symfony5项目上下载easyadmin包以添加管理界面。错误不是来自yaml文件,因为(这个包在他的3.0版本中没有使用yaml,但我已经尝试了一些次要版本)。当脚本cache:clear.Then安装失败时,我得到了一个KO。
In FileLoader.php line 173:
There is no extension able to load the configuration for "paths" (in "/Users/guilhem/workspace/symfony_project/config/packages/t
我只想用PHP5.6在服务器上安装我的Symfony 3.2应用程序,composer install告诉我twig/twig v2.0.0 requires php ^7.0 -> your PHP version (5.6.22) does not satisfy that requirement.
我怎样才能改变我的应用程序中使用的树枝版本?据我所知,Symfony使用的是树枝束()。
我是否需要将symfony/添加到较低的版本(哪个版本?)还是我需要在我的composer.json需求部分中添加小枝/小枝v1.31.0?
更新:
我的composer.json
{
我是symfony的新手我尝试通过命令composer require admin安装admin panel包,但它给出了错误包,我执行了命令composer The deprecation template must contain the “% service_id%” placeholder,并找到了一些答案(更新easycorp/easyadmin-bundle,更新信条/信条-迁移-包,更新symfony/orm-pack)我尝试了这些命令,但它给出了错误: Fatal error: Declaration of ContainerLTFhDJN\EntityManager_9a5
我在symfony中安装原理时没有使用sudo,所以这就是我得到的.
The "https://flex.symfony.com/aliases.json" file could not be downloaded: failed to open stream: Connection refused https://flex.symfony.com/aliases.json could not be fully loaded, package information was loaded from the local cache and may be out of date
t
我已经下载了laravel 4初学者工具包,我已经有了composer,但是当我运行composer install来安装初学者工具包时,我得到了这个错误:
[Composer\Downloader\TransportException]
The "https://api.github.com/repos/symfony/Translation/zipball/v2.3.1" file
could not be downloaded: php_network_getaddresses: getaddrinfo failed: No such host is known.
fai
我们使用下面的捆绑包与Symfony2一起创建一个RESTful API。
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new Nelmio\ApiDocBundle\NelmioApiDocBundle(),
在运行php composer.phar更新后,我们得到以下错误
[2014-12-05 10:39:41] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-
我正试图用Symfony 6来设置Easy 4,所以我按照文档的说明做了composer require easycorp/easyadmin-bundle。
Composer创建DashboardController.php,我有以下代码:
<?php
namespace App\Controller\Admin;
use App\Entity\User;
use EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use Eas
在Ubuntu 18.04中,我安装了php。我通过index.php测试确认了它的有效性。我现在尝试安装composer
composer install
但下面显示了错误:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
-
我最近创建了一个symfony包,源代码在这里:
当我试图在Symfony 4.3项目(从头创建或已经存在)上通过composer请求它时,我得到了这个错误:
composer req nbo/rest-api-bundle
Using version ^1.1 for nbo/rest-api-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricti
当我直接用phpUnit安装composer req phpunit/phpunit时,我会收到一条警告消息:
Adding phpunit/phpunit as a dependency is discouraged
in favor of Symfony's PHPUnit Bridge.
* Instead:
1. Remove it now: composer remove --dev phpunit/phpunit
2. Use Symfony's bridge: composer require --dev phpunit
所以我照消息说的做了
当我运行composer更新时,它会失败,显示错误:
[Composer\Downloader\TransportException]
The "https://packagist.org/packages.json" file could not be downloaded: failed to open stream:
连接被拒绝
如果我从浏览器访问URL,当我尝试从我的终端wget或curl时,它会显示错误:
--
当我尝试用composer安装依赖关系时,symfony应用程序出现了问题:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/framework-bundle[v6.0.0, ..., v6.0.12] require composer-runtime-api >=2.1 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
我更新symfony版本5.4到6.1,我有此错误,在论坛上找不到解决方案(我认为同时存在几个问题):
Fatal error: Declaration of App\Repository\UserRepository::upgradePassword(Symfony\Component\Security\Core\User\UserInterface $user, string $newEncodedPassword): void must be compatible with Symfony\Component\Security\Core\User\PasswordUpgraderInte
我正在为一个私人github主持的项目工作。我正在克隆回购程序并运行composer install
我得到了
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony
所以我从维修部拿回了我的电脑,并对它进行了格式化。现在我正在尝试重新安装我拥有的所有东西,但我在安装Laravel时遇到了问题。我在Linux Mint19.3操作系统上运行。我已经安装了PHP并安装了所有的laravel依赖项。我安装了Composer,当我尝试运行 composer global require "laravel/installer" 我明白了: Changed current directory to /home/gustavo/.config/composer
Using version ^4.0 for laravel/installer
./com