If Magento 2 is your first introduction to PHP namespaces, here’s one small thought technology that might help. Consider the following
namespace FooBaz;
class Bar {
}
The above does not define a class named Bar
. It defines a class named “FooBazBar
”. That’s how PHP sees the class internally, and once you start thinking about classes the same way PHP does, they start making more sense, (or, at least, they did for me)