CakePHP Resque composer安装错误

时间:2016-06-02 10:38:45

标签: cakephp composer-php cakephp-3.0 resque

我已经使用以下命令通过Composer安装了CakePHP

composer create-project --prefer-dist cakephp/app my_app_name

CakePHP documentation中所述。

我需要kamisama/cake-resque插件,但当我使用composer require kamisama/cake-resque时,我收到以下错误

Using version ^4.1 for kamisama/cake-resque
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
Script Cake\Composer\Installer\PluginInstaller::postAutoloadDump      
handling the post-autoload-dump event terminated with an exception

Installation failed, reverting ./composer.json to its original content.


[RuntimeException]                                                                                                                          
Unable to get primary namespace for package kamisama/cake-resque.                                                                           
Ensure you have added proper 'autoload' section to your plugin's    
config as stated in README on https://github.com/cakephp/plugin-installer  


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

0 个答案:

没有答案