gpt4 book ai didi

macos - ErrorException JMS\SerializerBundle\JMSSerializerBundle

转载 作者:行者123 更新时间:2023-12-02 16:01:48 24 4
gpt4 key购买 nike

我正在尝试为以下项目安装供应商 connect在 osx lion 上。

cd /tmp
git clone git://github.com/dsyph3r/connect
cd connect
git submodule update --init

php bin/vendors install

当我运行以下命令php bin/vendors install时,我收到以下消息:

[ErrorException]

Catchable Fatal Error:
Argument 1 passed to JMS\SerializerBundle\JMSSerializerBundle::__construct()
must implement interface Symfony\Component\HttpKernel\KernelInterface,
none given, called in /Users/antoniopierro/Sites/connect/app/AppKernel.php on line 21
and defined in /Users/antoniopierro/Sites/connect/vendor/bundles/JMS/SerializerBundle/JMSSerializerBundle.php line 37

我错过了什么?

最佳答案

您需要将内核传递给包的构造函数:

$bundles = array(
//...
new JMS\SerializerBundle\JMSSerializerBundle($this),
//...
);

关于macos - ErrorException JMS\SerializerBundle\JMSSerializerBundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10361346/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com