Welcome Guest, Not a member yet? Register   Sign In
Hello eh found this rare variable "config(App::class)" could tell me about this
#1

I apologize for questions, it's just that I find it interesting, As you will see I have seen in the configuration of a library of codeigniter and it has caught my attention the same and I remain in the doubt that it applies specifically.

PHP Code:
    public function __construct() {
        $config config(App::class);
        $this->response = new Response($config);
    
I have some doubts so that it will really be and/or how it could have an impact in the course of use, if necessary and as a help to the environment, I would also appreciate it if there is any source documentation or code to check more about these things.
Reply
#2

This should explain it to you.

Class name resolution via ::class
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