Questions tagged [naming-convention]

Questions about naming convention in Magento

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Naming Convention in imports - use \class vs use class

I found that, "Magento 2, At its core is PSR-4 compliant". Then I got into this: https://www.php-fig.org/psr/psr-4/ and the table at the bottom: FULLY QUALIFIED CLASS NAME -> \Acme\Log\Writer\...
1
vote
1answer
67 views

custom extensions - are hyphens allowed in the Extension name?

This is a follow up on the Magento 2 Extension naming convention question here. I've learned thus far that you need a Vendor Name an Extension (or Module) name a combination of both like ...
15
votes
4answers
2k views

Magento 2 best practice for class locations and names

In Magento 1 we were used to place our classes in these directories Block Helper Model Resource and use a simple class name without any capital letters in the middle of the name. ...