2017-02-16 17 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(); 

任何想法,爲什麼不加載類?

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

回答