使用作曲家找不到Codeigniter Stomp



所以...我正在使用php7.0的codeigniter3,因为这是兼容版本,带有stomp v2.0.0 @ pecl ...一切都应该按顺序进行。

我已在application/config.php

中设置
$config['composer_autoload'] = TRUE;

在Composer.json

{
    "name": "gritnet/gms",
    "description": "GMS is a basic content management system based on CodeIgniter with the sole purpose of helping in the development of small to medium custom websites",
    "type": "project",
    "require": {
        "rmccue/requests": "^1.7",
    "stomp-php/stomp-php": "4.*"
    },
    "authors": [
        {
            "name": "GRITNET LIMITED",
            "email": "office@gritnet.uk"
        }
    ]
}

在运行命令 composer install上我得到

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

在运行命令composer update上我获得

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

当我尝试使用通过作曲家安装的库连接到服务器时,我会收到以下错误:

An uncaught Exception was encountered
Type: Error
Message: Call to undefined method Stomp::connect()
Filename: /home/gritnet/public_html/gms/application/controllers/Homepage.php
Line Number: 11

第11行是

        Line 10: $stomp = new Stomp('tcp://localhost:61613');
        Line 11: $stomp->connect();

任何想法为什么不加载班级?

所有文件都在 application/vendor

忘记将Stomp扩展名加载到php.ini file @ cpanel中。扩展可以在此处找到:https://pecl.php.net/package/stomp

相关内容

  • 没有找到相关文章

最新更新