Welcome Guest, Not a member yet? Register   Sign In
Updating myth auth library via composer
#1

(This post was last modified: 11-25-2020, 01:45 PM by boddah85.)

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
Reply
#2

When was the last time you installed Myth/Auth? Because it was just updated a few days ago.

I don't use Composer but I do have it installed here, I manually install Myth/Auth here.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB