• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Myth Auth LoginFilter Problem

#1
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 InsiteFX - 09-14-2020, 08:47 AM
RE: Myth Auth LoginFilter Problem - by InsiteFX - 09-15-2020, 08:36 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.