Welcome Guest, Not a member yet? Register   Sign In
Modules not loading config files
#10

Autoloading constants file, as well as other non-class files, will be a new feature for the Autoloader class. This will be implemented by autoloading "files", as opposed to autoloading classes.

Are you using Composer? If yes, then there is a workaround. In your composer.json, add the files array to your autoload section.
Code:
"autoload": {
    "files": [
        "path/to/constants.php"
    ]
}

Then in your terminal, just run ` composer dump-autoload`
Reply


Messages In This Thread
Modules not loading config files - by ZoeF - 03-19-2021, 12:42 PM
RE: Modules not loading config files - by kenjis - 03-19-2021, 06:44 PM
RE: Modules not loading config files - by ZoeF - 03-19-2021, 08:13 PM
RE: Modules not loading config files - by ZoeF - 03-20-2021, 02:05 PM
RE: Modules not loading config files - by kenjis - 03-20-2021, 05:55 PM
RE: Modules not loading config files - by ZoeF - 03-20-2021, 06:01 PM
RE: Modules not loading config files - by ZoeF - 03-21-2021, 07:46 PM
RE: Modules not loading config files - by paulbalandan - 03-26-2021, 12:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB