Closed justinholtweb closed 2 years ago
Since it's a custom module, you can probably just use ... as ...
for either (or both) of them.
use craft\web\View as CraftView
use doublesecretagency\viewcount\services\View as PluginView
That should prevent any conflicts in your module.
Let me know if I misunderstood something. Feel free to DM me for help troubleshooting.
That worked! Thanks Lindsey.
Attempting to shoehorn this into an existing module that uses
use craft\web\View
and running into namespace/class collisions with theView
class thatuse doublesecretagency\viewcount\services\View
is attempting to establish.Cannot use doublesecretagency\viewcount\services\View as View because the name is already in use