Closed jorenvanhee closed 5 years ago
The plugin throws an error if you install it through the cli.
$ ./craft install/plugin cp-nav *** installing cp-nav > create table {{%cpnav_layout}} ... done (time: 0.018s) > create table {{%cpnav_navigation}} ... done (time: 0.023s) > add foreign key cpnav_navigation_layoutId_fk: {{%cpnav_navigation}} (layoutId) references {{%cpnav_layout}} (id) ... done (time: 0.023s) *** failed to install cp-nav: Calling unknown method: craft\console\Request::getUrl()
composer require verbb/cp-nav
./craft install/plugin cp-nav
same here.
verbb/cp-nav/src/CpNav.php:80 refers to Craft::$app->getRequest()->getUrl() which is not available on CLI
Fixed in 2.0.9
Description
The plugin throws an error if you install it through the cli.
Steps to reproduce
composer require verbb/cp-nav
./craft install/plugin cp-nav
Additional info