Rename Phalcon\Mvc\Url
I propose to rename Phalcon\Mvc\Url to Phalcon\Url. Since the Url is used not only in web applications but also in console (and micro) applications too. I think it will be semantic more correct.
Phalcon\Mvc\UrltoPhalcon\UrlPhalcon\Mvc\UrlInterfacetoPhalcon\UrlInterfacePhalcon\Mvc\Url\ExceptiontoPhalcon\Url\Exception
There is entirely too much stuff in the Phalcon\Mvc namespace.
There is entirely too much stuff in the
Phalcon\Mvcnamespace.
I agree.
I also suggest renaming Phalcon\Mvc\User\*, as they do not directly relate to the MVC pattern.
For example:
Phalcon\Mvc\User\ComponenttoPhalcon\User\ComponentPhalcon\Mvc\User\ModuletoPhalcon\User\ModulePhalcon\Mvc\User\PlugintoPhalcon\User\Plugin
If they are empty then can be abandoned also, because Injectable can be used directly in PHP. Less code is better.
And why User\Module exists? we have...
class Module implements ModuleDefinitionInterface { ... }
@ekmst The Phalcon\Mvc\User\* classes will be removed for sure. We were thinking about leaving only one of them, something in the lines of Phalcon\Plugin maybe?
Honestly those classes do nothing. They just offer a more intuitive way to make a class DI aware which one can do easily by extending InjectionAware.
As for the Url. Yes I agree. It would be best if we move it out of the Mvc namespace and I would love to see if I can introduce also the Uri implementation for PSR7 and make those two work together.
This has been resolved
I agree with @ekmst for
Phalcon\Mvc\User\Component to Phalcon\User\Component
Phalcon\Mvc\User\Module to Phalcon\User\Module
Phalcon\Mvc\User\Plugin to Phalcon\User\Plugin
But for Url it would be better to do something like;
Phalcon\Mvc\Url to Phalcon\Link
Phalcon\Mvc\UrlInterface to Phalcon\Link\Interface
Phalcon\Mvc\Url\Exception to Phalcon\Link\Exception