I am using Nette Framework which uses its own autoloader. How can I define custom autoloader or just exclude the standard one from composer so I can use my own?
Alternatively, if you want an additional autoloader, you can update composer.json
with:
{
"autoload": {
"files": ["src/extra/autoloader.php"]
}
}
Then run composer dump-autoload
to rebuild it. Now when you include vendor/autoload.php
it will also load your autoloader.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With