Hello
I still trying to learn ci4 and some new things like composer ;]
I've installed framework via composer and then myauth library. I have some problem with filters
Code:
Declaration of Myth\Auth\Filters\LoginFilter::before(CodeIgniter\HTTP\RequestInterface $request) must be compatible with CodeIgniter\Filters\FilterInterface::before(CodeIgniter\HTTP\RequestInterface $request, $arguments = NULL)
And as I see there's fix to it. However I can't update libary.
When Im trying
Code:
composer update myth
There's error
Code:
Package "myth" listed for update is not installed. Ignoring
When im trying "composer require myth/auth"
Code:
Nothing to install or update
My composer.json looks like that
Code:
{
"name": "codeigniter4/appstarter",
"type": "project",
"description": "CodeIgniter4 starter app",
"homepage": "https://codeigniter.com",
"license": "MIT",
"minimum-stability": "beta",
"require": {
"php": ">=7.2",
"codeigniter4/framework": "^4",
"myth/auth": "^1.0@beta"
},
"require-dev": {
"fzaninotto/faker": "^1.9@dev",
"mikey179/vfsstream": "1.6.*",
"phpunit/phpunit": "^8.5"
},
"autoload-dev": {
"psr-4": {
"Tests\\Support\\": "tests/_support"
}
},
"scripts": {
"post-update-cmd": [
"@composer dump-autoload"
],
"test": "phpunit"
},
"support": {
"forum": "http://forum.codeigniter.com/",
"source": "https://github.com/codeigniter4/CodeIgniter4",
"slack": "https://codeigniterchat.slack.com"
}
}
What im doing wrong? ;/
Thanks