Welcome Guest, Not a member yet? Register   Sign In
Myth Auth LoginFilter Problem
#1

(This post was last modified: 09-13-2020, 08:27 AM by ralphcabanero.)

Does anyone here encountered this issue as mine?

PHP Code:
[b]Fatal error[/b]: Declaration of Myth\Auth\Filters\LoginFilter::before(CodeIgniter\HTTP\RequestInterface $requestmust be compatible with CodeIgniter\Filters\FilterInterface::before(CodeIgniter\HTTP\RequestInterface $request$arguments NULLin [b]/var/www/charlzsys/vendor/myth/auth/src/Filters/LoginFilter.php[/bon line [b]24[/b

app/config/Routes.php
PHP Code:
$routes->group('', ['filter' => 'login'], function($routes) {
    
$routes->get('/''Home::index');
    
$routes->get('home''Home::index');
    
    
$routes->get('/test''Home::test');
}); 

app/config/Filters.php
PHP Code:
<?php namespace Config;

use 
CodeIgniter\Config\BaseConfig;

class 
Filters extends BaseConfig
{
    
// Makes reading things below nicer,
    // and simpler to change out script that's used.
    
public $aliases = [
        
'csrf'     => \CodeIgniter\Filters\CSRF::class,
        
'toolbar'  => \CodeIgniter\Filters\DebugToolbar::class,
        
'honeypot' => \CodeIgniter\Filters\Honeypot::class,
        
'login'      => \Myth\Auth\Filters\LoginFilter::class,
        'role'       => \Myth\Auth\Filters\RoleFilter::class,
        'permission' => \Myth\Auth\Filters\PermissionFilter::class,
    ];

    
// Always applied before every request
    
public $globals = [
        
'before' => [
            
//'honeypot',
            // 'csrf',
            //'auth',
        
],
        
'after'  => [
            
'toolbar',
            
//'honeypot'
        
],
    ];

    
// Works on all of a particular HTTP method
    // (GET, POST, etc) as BEFORE filters only
    //     like: 'post' => ['CSRF', 'throttle'],
    
public $methods = [];

    
// List filter aliases and any before/after uri patterns
    // that they should run on, like:
    //    'isLoggedIn' => ['before' => ['account/*', 'profiles/*']],
    
public $filters = [];



Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Myth Auth LoginFilter Problem - by ralphcabanero - 09-13-2020, 07:49 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-13-2020, 08:19 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-13-2020, 03:46 PM
RE: Myth Auth LoginFilter Problem - by raajaud - 12-01-2020, 08:10 PM
RE: Myth Auth LoginFilter Problem - by PwrSrg - 01-04-2021, 05:02 PM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-14-2020, 08:47 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-15-2020, 08:36 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 12-02-2020, 11:06 AM
RE: Myth Auth LoginFilter Problem - by PwrSrg - 01-06-2021, 06:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB