|
I'm trying to adjust some functionality of some Twill source files, and found something that says, if you want to overwrite source files, to copy over Twill files to your own project with the original namespace, add the original files to 'exclude-from-classmap' in composer, and add the copied file to 'files' in composer too (https://spectrum.chat/twill/help/override-settingcontroller-to-store-relationship-data-from-browser-field~457cd4c1-29a8-4bc7-b27f-a39f4e109e4d). I'm getting the following error: "Cannot declare class A17\Twill\Http\Controllers\Admin\UserController, because the name is already in use" Below is my composer.json autoload stuff: Am I missing something? |
Replies: 1 comment 3 replies
|
Hey @aarontilt, the I recently started exploring overrides through Laravel's container for Twill's internal classes: #1232 Do you think this can work for your use case? |
Hey @aarontilt, the
autoloadconfig looks fine to me, I'm not sure what could be causing this error.I recently started exploring overrides through Laravel's container for Twill's internal classes: #1232
Do you think this can work for your use case?