Search the Community
Showing results for tags 'psr-4'.
-
I've seen a couple of questions regarding namespaces and autoloading floating around the forum recently, so I decided to write a little tutorial. In general, I often see people getting confused when they try to wrap their head around namespaces, autoloading, Composer and the mapping of namespaces to...
- 5 replies
-
- 37
-
-
-
- autoload
- namespaces
-
(and 2 more)
Tagged with:
-
Unable to call wire() in namespaced classes
Mike Rockett posted a topic in Module/Plugin Development
I'd like to add support for ProcessWire 2.8 in Jumplinks, but am unable to call wire() in any PSR-4 autoloaded class. I'm using this to load my classes: $this->classLoader->addNamespace('Jumplinks', __DIR__ . '/src/Jumplinks'); In one of the classes given the Jumplinks\<Something> namespac...