How to define a custom autoloader in composer?

I use the Nette Framework, which uses its own autoloader. How to define a custom autoloader or just exclude the standard from the composer so that I can use my own?

+4
source share
1 answer

Just do not turn it on if you do not want to use it. Keep in mind that you have to handle autoload yourself.

If your autoloader can work with it, you can use the namespace file created by the composer:

Composer provides its autoloader. If you do not want to use it, you can simply include vendor / composer / autoload_namespaces.php, which returns associative arrays that map namespaces to directories.

Link: Autoload in composer documents .

+4
source

Source: https://habr.com/ru/post/1438400/


All Articles