Composer autoload update

  Uncategorized

In composer.json created next autoload rules. When add new file in app or new class with static propreties in existing config file and after his call this property it doesn’t find it.

As i understand, after every adding new class or file need to run composer dump-autoload -o?

"autoload" : {
    "psr-4" : {
        "MyProjectApp" : "app/",
        "MyProjectConfig" : "config/"
    }
}

Source: Composer php

LEAVE A COMMENT