2017-02-16 36 views
0

因此...我使用codeigniter3与PHP7.0,因为这是与跺脚v2.0.0 @ pecl兼容版本...一切都应该是为了。CodeIgniter跺脚未找到使用作曲家

我在申请/ 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": "[email protected]" 
     } 
    ] 
} 

在运行命令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(); 

任何想法,为什么不加载类?

所有文件都在应用/供应商

回答