我已经使用以下命令通过Composer安装了CakePHP
composer create-project --prefer-dist cakephp/app my_app_name
我需要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>]...