Skip to content

About Replacing Core Classes! #973

Closed
@35598253

Description

@35598253

I want to Replace \CodeIgniter\Router\Router.php Core Classes,How to operate?

Now my work is:
Myrouter.php:

namespace App\Libraries;
class Myrouter implements \CodeIgniter\Router\RouterInterface
{
Copy Router Classes And edit Variable(Actually, I just want to replace some function)

}

Services.php:
public static function routes($getShared = false)
{
if (! $getShared)
{
return new \Rcmf\Libraries\Myrouter();
}

        return self::getSharedInstance('routes');
}

running error

How can I correct?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions