PHP Fatal error:UncaughtSymfony\Component\Console\Exception\LogicException:The command definedin"Webman\Event\EventListCommand" cannot have an empty name.in/Users/liziyu/website/huashi/vendor/symfony/console/Application.php:557Stack trace:#0 /Users/liziyu/website/huashi/webman(25): Symfony\Component\Console\Application->add(Object(Webman\Event\EventListCommand))#1 {main}
thrown in/Users/liziyu/website/huashi/vendor/symfony/console/Application.php on line 557Fatal error:UncaughtSymfony\Component\Console\Exception\LogicException:The command definedin"Webman\Event\EventListCommand" cannot have an empty name.in/Users/liziyu/website/huashi/vendor/symfony/console/Application.php:557Stack trace:#0 /Users/liziyu/website/huashi/webman(25): Symfony\Component\Console\Application->add(Object(Webman\Event\EventListCommand))#1 {main}
thrown in/Users/liziyu/website/huashi/vendor/symfony/console/Application.php on line 557
webman/event
版本太老了,composer require webman/event
升级下composer 的taobao镜像最高只到1.0.4,我换了官方镜像,升级到了1.0.5就可以了
执行
php webman version
也会出错:我这没复现
不管它了,反正也不影响使用。
回来补下解决办法:删除项目下vendor与composer.lock后,重新 composer install 解决了。