ppi / framework

The PPI Framework Engine
http://www.ppi.io
MIT License
154 stars 30 forks source link

Improve consistency for Module->getName() #111

Closed dragoonis closed 10 years ago

dragoonis commented 10 years ago

1) We have AbstactModule::getName() doing dynamic reflection stuff 2) We have the Application module doing getName() { return 'Application'; } 3) We have Application module having $_moduleName

Decide in one true way to get this, ideally automatic in the AbstractModule

vitorbrandao commented 10 years ago

I would suggest keeping the "dynamic reflection stuff" and allow the user to override getName() to return an alternative name if he wants to.

This means, drop option 3.

dragoonis commented 10 years ago

Completed.